Could someone look at this code

Eos

Diamond Member
Jun 14, 2000
3,463
17
81
This is a page from my site and when it's clicked on, the page opens but requires side to side scrolling.

We already tried changing the code '99%' to '800 px' with no luck.

Thanks for any help you may have.

Here is the code:
 

AtlantaBob

Golden Member
Jun 16, 2004
1,034
0
0
eos,

Not trying to be a smart-aleck here, but if the monitor's maximum resolution is 800x600, is there any chance that the pixels that make up the frame of the window and the scroll-bar are keeping you from getting the 800 pixel (or 99%) width?

What would happen if you set it to, say, 780?
 

Eos

Diamond Member
Jun 14, 2000
3,463
17
81
No luck.

Thanks though.

I'm set to 1680 wide, btw. If I can't see it without scrolling, we've got a problem!
 

troytime

Golden Member
Jan 3, 2006
1,996
1
0
can you link us to the page? it should be pretty easy to spot whatever is making the table stretch

also, 760 is the max width you can go without a sidescroll for 800x600 users
 

Eos

Diamond Member
Jun 14, 2000
3,463
17
81
Originally posted by: troytime
can you link us to the page? it should be pretty easy to spot whatever is making the table stretch

also, 760 is the max width you can go without a sidescroll for 800x600 users

You bet:

page in question

I'm probably not going to conform to 800*600 res settings. :p
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
Oh, you need to eliminate the margins and padding at the top of the page. CSS styles: "margin: 0 0 0 0; padding: 0 0 0 0"
 

Eos

Diamond Member
Jun 14, 2000
3,463
17
81
Originally posted by: xtknight
Oh, you need to eliminate the margins and padding at the top of the page. CSS styles: "margin: 0 0 0 0; padding: 0 0 0 0"

This?:

DIV.history {
border: 0;
height: 100%;
width: 100%;
align: middle;
}
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
The HTML code of the site being sent to the user (you can not use less-than or greater-than signs in CSS files).

Somehow you need to set the margin and padding properties of the body tag to zero. Whether that entails editing the PHP or HTML, I don't know, that depends on if the PHP is writing the body tag or if there's HTML somewhere.

What is the code listed in the OP? It is PHP of some sort, but it looks like it's in the middle of the page somewhere. Where are the HTML and body tags written out?

Upon further examination, the problem actually lies somewhere within the CSS code. I can view the site without the CSS and I have no scrollbar problem.

BODY {
font-family: verdana;
}

When the font-family element (above) from the CSS is removed, it works fine. So, I believe the problem stems from different font sizes in your page.
 

troytime

Golden Member
Jan 3, 2006
1,996
1
0
where it outputs the page numbers in brackets, change the non breaking space to a regular space

your code shows a regular space, but its output as a & n b s p ; (without spaces)
 

troytime

Golden Member
Jan 3, 2006
1,996
1
0
yep, the AT code view has a bug
it converts the & n b s p ; to a real space character

fix it in your code, and i think you'll be set.
 

Eos

Diamond Member
Jun 14, 2000
3,463
17
81
Originally posted by: troytime
yep, the AT code view has a bug
it converts the & n b s p ; to a real space character

fix it in your code, and i think you'll be set.

Works great now. Thank you.