Web Design Forum: #content div doesn't appear to be displaying - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

#content div doesn't appear to be displaying

#1 User is offline   EvSouL 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 367
  • Joined: 16-January 08
  • Reputation: 1
  • Gender:Male
  • Location:San Francisco and Los Angeles
  • Experience:Advanced
  • Area of Expertise:Web Designer

Posted 17 August 2009 - 11:24 AM

Ok, maybe I'm going crazy and losing my mind from looking at this site for so long but my #content div is not displaying...
0

#2 User is offline   MolotovRuss 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,336
  • Joined: 30-December 07
  • Reputation: 14
  • Gender:Male
  • Location:Liphook, Hampshire
  • Experience:Advanced
  • Area of Expertise:Web Designer

Posted 17 August 2009 - 11:44 AM

You haven't cleared your floated element (i had this problem recently, wdf helped me).

After your
<div class="assessment-links">
is closed, add
<div class="clear">&nbsp;</div>
, and in your css, add the rule
.clear { clear: both; height: 0; overflow: hidden; width: 0; }


Hope your head's not already exploded :)

PS: it's &nbsp between the clear tags, for some reason its not read in code view.
0

#3 User is offline   Thomas Thomassen 

  • HTTP 503
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,254
  • Joined: 30-April 07
  • Reputation: 10
  • Gender:Male
  • Location:Trondheim, Norway
  • Experience:Advanced
  • Area of Expertise:Designer/Coder

Posted 17 August 2009 - 11:46 AM

In FF3.5 I can see the #content DIV.
0

#4 User is offline   MolotovRuss 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,336
  • Joined: 30-December 07
  • Reputation: 14
  • Gender:Male
  • Location:Liphook, Hampshire
  • Experience:Advanced
  • Area of Expertise:Web Designer

Posted 17 August 2009 - 11:55 AM

I'm in FF3.5, if you study the code, you'll see that the background isn't showing, hence my solution (his #content has no height, it's supposed to adopt it from it's contents, but it's content are floated).
0

#5 User is offline   EvSouL 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 367
  • Joined: 16-January 08
  • Reputation: 1
  • Gender:Male
  • Location:San Francisco and Los Angeles
  • Experience:Advanced
  • Area of Expertise:Web Designer

Posted 17 August 2009 - 12:02 PM

View PostMolotovRuss, on 17 August 2009 - 11:44 AM, said:

You haven't cleared your floated element (i had this problem recently, wdf helped me).

After your
<div class="assessment-links">
is closed, add
<div class="clear">&nbsp;</div>
, and in your css, add the rule
.clear { clear: both; height: 0; overflow: hidden; width: 0; }


Hope your head's not already exploded :)

PS: it's &nbsp between the clear tags, for some reason its not read in code view.


Thanks a lot that fixed it. I fixed that, and now another issue arises.. aaahhh man. I've never felt so dumb when making a site before. This is all stuff I know, yet can't catch it.


View PostThomas Thomassen, on 17 August 2009 - 11:46 AM, said:

In FF3.5 I can see the #content DIV.



Really? That's what I am using too, I checked it in FF3.5, Safari4, Chrome, and IE7 the content div wasn't displaying in any of those.. what the hell.
0

#6 User is offline   EvSouL 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 367
  • Joined: 16-January 08
  • Reputation: 1
  • Gender:Male
  • Location:San Francisco and Los Angeles
  • Experience:Advanced
  • Area of Expertise:Web Designer

Posted 17 August 2009 - 12:07 PM

If you go to the link in the OP, does it make sense that the menu div is over lapping the #banner div?
At least in firefox it's overlapping my clients head. But in IE7 it is not doing that.
0

#7 User is offline   MolotovRuss 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,336
  • Joined: 30-December 07
  • Reputation: 14
  • Gender:Male
  • Location:Liphook, Hampshire
  • Experience:Advanced
  • Area of Expertise:Web Designer

Posted 17 August 2009 - 02:18 PM

Hi EvSoul,

Your problem is the floats you're using. If you remove the float:left on the menu div, and remove its margins, it works perfectly.

The floats are unnecessary and will cause you headaches, those divs will function exactly the same way without them!

Don't worry, we've all been there buddy!
0

#8 User is offline   EvSouL 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 367
  • Joined: 16-January 08
  • Reputation: 1
  • Gender:Male
  • Location:San Francisco and Los Angeles
  • Experience:Advanced
  • Area of Expertise:Web Designer

Posted 17 August 2009 - 09:06 PM

Yeah I saw the floats/margins this morning and thought "why the heck did I put that in there?"

shows what a little sleep will do.

Thank you so much for the help.
0

#9 User is offline   MolotovRuss 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,336
  • Joined: 30-December 07
  • Reputation: 14
  • Gender:Male
  • Location:Liphook, Hampshire
  • Experience:Advanced
  • Area of Expertise:Web Designer

Posted 18 August 2009 - 07:38 AM

No problem, hope your heads a little clearer now :)
0

#10 User is offline   gaz545 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 146
  • Joined: 12-August 09
  • Reputation: 3
  • Gender:Male
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 18 August 2009 - 12:18 PM

This isn't the best method due to the fact your adding in a non-essential div and your getting divitis, but unfortunatly it is most deffinatly the easyist way.
0

#11 User is offline   Szitar 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 48
  • Joined: 03-November 08
  • Reputation: 1
  • Gender:Male
  • Location:Suffolk
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 19 August 2009 - 10:36 PM

View PostMolotovRuss, on 17 August 2009 - 11:44 AM, said:

.clear { clear: both; height: 0; overflow: hidden; width: 0; }



Thanks for that post! Helped me a lot!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users