Forum Moderators: not2easy

Message Too Old, No Replies

how to get a block without content to display?

         

sodani

9:51 pm on Nov 8, 2007 (gmt 0)

10+ Year Member



Hi, I have something like <div class="green"></div>, which has no content but I'd like it to have certain dimensions and display a background image. I've defined both the dimensions and background image for this div class in the CSS document, but the block won't actually display unless you put something in it. What's the best way to get around this?

sodani

9:54 pm on Nov 8, 2007 (gmt 0)

10+ Year Member



nevermind. I figured it out. Had to set a width and height for the block.

Xapti

10:01 pm on Nov 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Then why did you say "I've defined both the dimensions"? :P