justlukeyou — 2012-05-02T14:33:11-04:00 — #1
Bloody hell. I have designed a webpage which I am quite pleased with however I want to centre some text but I need to put something on the right. So I have put a space on the left. However the spacer will only add the width of 30% if an border is applied.
Does anyone know how I can apply the 30% width without having a border.
border-bottom:1px solid #989898;
font-family:Verdana, Geneva, sans-serif;
stevie_d — 2012-05-02T16:07:43-04:00 — #2
I'm guessing that at the moment you've got
If so, try putting a in there and see if that does the trick.
Or alternatively, a better solution might be to have the right-hand content come first in the markup (floated right), and then you can float the headerlinks <div> to the right and you won't need a spacer <div> at all.
justlukeyou — 2012-05-02T18:41:00-04:00 — #3
Nice one thanks, that worked fine.
dresden_phoenix — 2012-05-03T18:47:55-04:00 — #4
min-height:.5em; ( in IE height:.5em) that way you dont have to touch the mark up.