Forum Moderators: open

Message Too Old, No Replies

Question about Fixed Length Site

Horizontal Scroll

         

madcat

1:40 am on May 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a site layed out at 800px wide...

The two images that seem to be causing the problem on a 800X600 Res are exactly 800px wide- I have no padding or margins as of yet and everything is set to 0 as far as cellspacing, cellpadding and borders. It looks like about 10px or so are being added to the right hand side of the screen creating a horizontal scrollbar. Any reasons as to why this might be happening...should it not fit perfectly without the bar?

Thanks for any help.

Macguru

1:43 am on May 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Some space left for the vertical scroll bar?

I trim it to 770.

grahamstewart

1:44 am on May 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



nope - on an 800x600 resolution you will have slightly less than 800 pixels to use for your content. This is because of the edges of the browser window and the space for the scroll bar.

Why not use a nice fluid layout instead? :)

madcat

12:37 pm on May 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Got ya. Yeah, I always design with the fluid layout. It's the only way to go. However, I was given a design that was fixed so I'm trying to recreate it.

I guess they were expecting an 800px logo to fit exactly in that screen res. It will be difficult to trim it down 30px without ruining the logo. Bloody.

Thanks

grahamstewart

12:56 pm on May 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmm.. you could use the logo in the
background-image
of a 100% wide div. That way it will never cause a scroll bar (but it might have its edge cut off).

Alternatively, you could specify the width of the image as 100% - don't specify a height and let the browser handle the scaling.

madcat

9:03 pm on May 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the suggestions, I'll try them...