Ready, steady… save!
You don’t need a chart to join in. Here are 2 ways to record your savings:
1. Cross it off
Pop a chart into your first post. Saved an amount? Cross it out! Read more »
£0.01 £0.02 £0.03
2. Write it down
Skip the chart and add updates to your first post. Read more »
“Another +£3 saved today. Go me!”
Use +£ before each new saving so it counts towards your total.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
CSS and tables
lenora
Posts: 60 Forumite
in Techie Stuff
I would like to create a block in which to display my links like this this one is done using a table and the cell have a white border but I would like to scrap the table and use CSS instead I have tried playing around with different things I currently have:
#nav !!
position: absolute;
top: 170px;
left: 648px;
width: 158px;
}
#nav a !!
font-family: Arial,Helvetica,sans-serif;
display: block;
padding: 8px;
color: white;
background: red;
border-bottom: 1px solid white;
border-top: 1px solid white;
border-left: 1px solid white;
border-right: 1px solid white;
text-decoration: none;
font-size:12px;
}
This places a white line around each link but you cant see the left and right border as the page background is white, anyone have any ideas
#nav !!
position: absolute;
top: 170px;
left: 648px;
width: 158px;
}
#nav a !!
font-family: Arial,Helvetica,sans-serif;
display: block;
padding: 8px;
color: white;
background: red;
border-bottom: 1px solid white;
border-top: 1px solid white;
border-left: 1px solid white;
border-right: 1px solid white;
text-decoration: none;
font-size:12px;
}
This places a white line around each link but you cant see the left and right border as the page background is white, anyone have any ideas
0
Comments
-
Add some padding to #nav. e.g
#nav !!
position: absolute;
top: 170px;
left: 648px;
width: 148px;
padding: 5px
}
***Don't forget if you need a width of 158px to take the left and right padding off the width, in this case make it 148px.***
You can then add a margin-top and margin-bottom to '#nav a' to spread out your links boxes.
HTH
Bear
Edit: Not sure what the deal is on this site, outputting !! instead of the opening curly brace, but I'm sure you'd already spotted that.Last ciggie - 28/01/2012 :dance:
If you are not paying for it, you're not the customer; you're the product being sold.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 355.9K Banking & Borrowing
- 255K Reduce Debt & Boost Income
- 456.2K Spending & Discounts
- 248.4K Work, Benefits & Business
- 606.1K Mortgages, Homes & Bills
- 179K Life & Family
- 263.9K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.2K Discuss & Feedback
- 37.7K Read-Only Boards