PDA

View Full Version : Vertical Height in xhtml?!?


ZranX
Thu 11th Dec '03, 4:05pm
Hey all,
I am trying to get an image that is of height 1 px to have no padding around it... I've tried the padding, margin, line-height, height and vspace attributes in css and xhtml and nothing is working... Its starting to drive me bonkers...
http://www.elitefx.com/ffr_prob1.gif
I want to make it so that the dotted lines have no padding and look like below:
http://www.elitefx.com/ffr_prob2.gif

The old one was coded in html 4, but it just doesn't work in xhtml. Any help is greatly appreciated.

Laterz

ZranX
Sat 13th Dec '03, 3:12pm
I sorted it... used a table and used the line-height css command... ah well :p

LeeCHeSSS
Thu 18th Dec '03, 7:34am
A table? Ick!

diades
Tue 6th Jan '04, 8:15am
Hi Guys

Images do not have padding or margins etc., in xhtml unless they are set. I would imagine that you problem (without seeing the markup) is caused by whitespace which does make a difference in xhtml.

<a href="#">blah</a>
<a href="#">blah</a>
will give:

blah blah

not:
blahblah

a similar effect will occur with images.