Previous Message
Next Message

DIV, Width and Scrolling question

Sent by Joe J. Marquez on 11 September 2003 17:05


Thanks Jurgen!

That makes so much sense...I have since made the changes you suggested and
changed the top gray box and the nav section from position:absolute; to
position:fixed; - this solves the scrolling problem.

I need now to change the rest of the boxes and I will have part of the
problem solved.

I also incorporated using z-index because the nav area was overlapping the
top gray box.

Joe

----- Original Message ----- 
From: "Jurgen Haug" [EMAIL-REMOVED]>
To: "Joe J. Marquez" [EMAIL-REMOVED]>;
[EMAIL-REMOVED]>
Sent: Thursday, September 11, 2003 3:00 AM
Subject: Re:[css-d] DIV, Width and Scrolling question


>
> Hello Joe,
>
> Thursday, September 11, 2003, 1:44:19 AM, you wrote:
>
>
> > Am working on a site created by a graphic design firm. I want to use a
hybrid method while I get more comfortable with CSS layouts.
>
> > There are sections of color on the page that are merely div tags. I have
their width set to 100% - but they go off the page, causing the page to
scroll. What am I doing wrong? I tried "overflow"
> > but it does not seem to apply to sections of color. The client wants the
colors to reach the limit of the browser window but go no further.
>
> > Having just switched over the DTD, the site no longer works in IE6.x for
XP. (that is a whole 'nother issue).
>
>
> not really, since we first have to have a working (=valid) document,
before we should start wondering why it doesn't work, right? Your document
is still an almost valid HTML4.01 transitional.
>
> Apart from that, wo mistakes come immediately up:
> you give out plenty of ID="whitebox". That's not allowed. ID's are to be
named specific. One unique name for each ID. You have to do CLASS="whitebox"
plus .whitebox in the CSS instead of #whitebox.
> _Most_ browsers won't mind, but it's not valid.
>
> Second thing:
> It should be <script type="text/javascript"> not <script
language="JavaScript">
>
> when you change that, then it is a valid HTML4.01 transitional. Certainly
with the 4.01 DTD then, not the XHTML.
>
> When done that, we can look into the CSS, right? I bet the boxes run out,
because the width is 100%, and the position is fixed. The containers read
the 100% as 100% of the screen width, and they go 100% screen width from
where you make the start, not just to the edge of the screen.
>
> -- 
> Best regards,
>  Jurgen
>
> Using The Bat! v2.00.6 on Win.XP.5.1.2600.SP1
>
> ______________________________________________________________________
> css-discuss [EMAIL-REMOVED]]
> http://www.css-discuss.org/mailman/listinfo/css-d
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
>


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: