View Full Version : Background
thesmart1
08-15-2006, 05:33 PM
What HTML tags can have a CSS background property
_Aerospace_Eng_
08-15-2006, 05:38 PM
Any thing that goes in the body. Why do you ask? Wait let me guess. You are trying to set a background to an element and it works partially but the width and height you set aren't working?
thesmart1
08-15-2006, 05:57 PM
I tried adding a background property to both a div and a table, but I didn't put anything in them, so they didn't show up. :o I got it to work by adding a non-breaking space.
P.S. Out of curiousity, why would the height and width not work?
_Aerospace_Eng_
08-15-2006, 06:09 PM
If it was an inline element like a link or a span. Heights or widths technically can't be applied to these elements unless their display is changed to block.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.