Click to See Complete Forum and Search --> : [RESOLVED] Link Height from Transitional to Strict
rpanning
05-01-2008, 12:58 PM
I have an odd issue when I switch a design from XHTML Transitional to Strict. There is a link with an image (ex: <div><a><img /></a></div>) and when I switch the DTD to strict it makes the link longer (height). After some troubleshooting I cannot find what is the cause. Is anyone aware of a change between the two which would effect links?
ray326
05-01-2008, 11:25 PM
I'm guessing the browser is applying the correct line height to the img in strict. Try making the img display:block.
rpanning
05-02-2008, 11:51 AM
Right on! That did fix the height problem. Now the link is the entire width of the screen though.
Also, I forgot to mention it only happens in Firefox and not IE, which is backwards...
rpanning
05-02-2008, 02:43 PM
Fixed, I had to float it anyway (which fixed the width) to get another item right aligned. Thanks