WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > CSS > empty divs...

Reply
  Thread Tools Display Modes
Old 4th February 07, 03:08 PM   #1
missruby
WLC Member
 
Join Date: Jan 2007
Location: ...new england...
Posts: 19
Default empty divs...

what's the difference between when you put a non-breaking space inside an empty div and when you don't?
missruby is offline   Reply With Quote
Old 4th February 07, 06:40 PM   #2
Oreo
WLC Member
 
Oreo's Avatar
 
Join Date: Jan 2007
Location: Québec, Canada
Posts: 35
Default Re: empty divs...

Good question, especially when you find them in my code

Let's say you have a div element that has borders and background set but no width or height defined. If there is no content in that div, you won't see anything.

The non-breaking space serves as a dummy content so you can visualize your div.

I find it handy when I code, but I don't usually leave it when published because it is considered dirty coding since the content is used as presentation.
Oreo is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Placing 2 DIVs side by side.. vxt CSS 17 17th April 11 10:43 AM
Divs in a grid netfuel HTML & XHTML 4 28th June 07 12:05 PM
extending multiple divs to fill the screen gucci09 Scripting and Server Side 1 10th January 07 05:54 PM
div's overlapping fluerasa CSS 1 10th October 06 05:17 AM
Strange problem with nested div's in IE emjay1 Browser Compatibility 2 1st September 06 04:28 PM


All times are GMT. The time now is 02:33 AM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.