473,386 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Surplus page width problem

ima
I'm attempting to use CSS for a three column layout. My problem is
that although I'm using width % ie. column1 width 20%, column2 width
60%, and column3 20% I end up with a horizontal scroll bar with a few
more pixels to scroll.

I'm here to ask those of you with more CSS experience than myself
(which is just about everyone), what else should I be looking at that
may be adding to my page width? I've tried changing the right margin
for the rightcolumn but even if I move it to overlapping the content
column those few pixels of extra page width remain.

I've added background colors to content in each column for debugging
purposes.

Your help would be appreciated.

An example of this problem has been posted at:
http://www.kencoffman.com/pagewidthproblem.htm

Sep 19 '05 #1
10 1816
"ima" <im*********@yahoo.com> wrote:
I'm attempting to use CSS for a three column layout.


We heard you the first time you posted, no point in posting the same
question again.

--
Spartanicus
Sep 19 '05 #2
ima
> We heard you the first time you posted, no point in posting the same
question again.
Spartanicus


It was NOT my intention to post the same question twice. There was at
least 6 hours between my attempts. I was merely challenge to get it
posted once. Did no one else notice that the board did not move for
most of Sunday? But hey, thanks for being there to help out.

Sep 20 '05 #3
"ima" <im*********@yahoo.com> wrote:
It was NOT my intention to post the same question twice. There was at
least 6 hours between my attempts. I was merely challenge to get it
posted once. Did no one else notice that the board did not move for
most of Sunday?


Particular to your news server, not a reason to repost.

--
Spartanicus
Sep 20 '05 #4
Once upon a time *ima* wrote:
We heard you the first time you posted, no point in posting the same
question again.
Spartanicus


Did no one else notice that the board did not move for
most of Sunday?


No, and that's because we use a proper newsreader, subscripe to a
proper news server, not the PITA GoogleGroups. :)

--
/Arne
Now killing all posts originating at GoogleGroups
Workaround: http://www.safalra.com/special/googlegroupsreply/
Sep 20 '05 #5
ima wrote:
I'm attempting to use CSS for a three column layout. My problem is
that although I'm using width % ie. column1 width 20%, column2 width
60%, and column3 20% I end up with a horizontal scroll bar with a few
more pixels to scroll.

I'm here to ask those of you with more CSS experience than myself
(which is just about everyone), what else should I be looking at that
may be adding to my page width? I've tried changing the right margin
for the rightcolumn but even if I move it to overlapping the content
column those few pixels of extra page width remain.

I've added background colors to content in each column for debugging
purposes.

Your help would be appreciated.

An example of this problem has been posted at:
http://www.kencoffman.com/pagewidthproblem.htm


Well, your CSS is invalid. Start off by fixing this.

You did not say which browser had the problem. If your problem persists
after you fix your CSS, and the browser is IE, reduce the percentages a
bit so that the total is less than 100%.
Sep 20 '05 #6
ima
An example of this problem has been posted at:
http://www.kencoffman.com/pagewidthproblem.htm
Well, your CSS is invalid. Start off by fixing this.


I don't claim it's pretty but W3C and WDG validators both disagree with
you and found no errors. I checked this BEFORE posting the request for
assistance.
You did not say which browser had the problem. If your problem persists
after you fix your CSS, and the browser is IE, reduce the percentages a
bit so that the total is less than 100%.


Both Opera 8.02 and FF 1.0.6 oddly enough, IE 6 does not share this
particular problem. Maybe that will be a helpful clue if you happen to
have a lot of experience with IE's "special" workings. I'm still very
new to CSS (as you might have guessed by my attempt to use it).

Sep 21 '05 #7
ima wrote:
An example of this problem has been posted at:
http://www.kencoffman.com/pagewidthproblem.htm


Well, your CSS is invalid. Start off by fixing this.


I don't claim it's pretty but W3C and WDG validators both disagree with
you and found no errors. I checked this BEFORE posting the request for
assistance.


WRONG. The W3C CSS validator produced this:

-----

Errors

URI : http://www.kencoffman.com/css/saa4.css

* Line: 3 Context : div#container

Invalid number : width Parse Error - width=100%

* Line: 7 Context : div#mainwrapper

Invalid number : width Parse Error - width=100%

* Line: 18 Context : div#content

Invalid number : width Parse Error - width=60%

-----

There are also a bunch or warnings.
You did not say which browser had the problem. If your problem persists
after you fix your CSS, and the browser is IE, reduce the percentages a
bit so that the total is less than 100%.

Both Opera 8.02 and FF 1.0.6 oddly enough, IE 6 does not share this
particular problem. Maybe that will be a helpful clue if you happen to
have a lot of experience with IE's "special" workings. I'm still very
new to CSS (as you might have guessed by my attempt to use it).


With FF 1.0.6 and Opera 7.54 I see no horizontal scroll bar until the
browser window width drops below a certain value, something over 600px.

With Opera 8.50 I never see a horizontal scroll bar.

Sep 21 '05 #8
ima
> WRONG. The W3C CSS validator produced this:
Errors
URI : http://www.kencoffman.com/css/saa4.css
* Line: 3 Context : div#container
Invalid number : width Parse Error - width=100%
* Line: 7 Context : div#mainwrapper
Invalid number : width Parse Error - width=100%
* Line: 18 Context : div#content
Invalid number : width Parse Error - width=60%

Yet another lesson learned: Apparently the validators check the htm
page and the css page separately. I did not realize that until you
referenced the css file above. I will go slither back and try to find
out why I can not use percentages for my widths as well as check the
warnings that you mentioned. It's all embarassing but I would never
have learned that the validator checks css independant of the html if
you had not taken the time to point it out. I thank you for that.

As for your results with Opera, I don't have a clue why you wouldn't
get the scroll bar and I do. I'm still learning to use the validators
properly! What do I know? I will do what I can to clean up the code
but I have little hope of solving this mystery. At least its fairly
minor in the scheme of things (of course if I'm the only one that sees
this problem, it may not exist). Just looking for a silver lining.

Sep 21 '05 #9
On 21 Sep 2005 10:08:39 -0700, "ima" <im*********@yahoo.com> wrote:
WRONG. The W3C CSS validator produced this:
Errors
URI : http://www.kencoffman.com/css/saa4.css
* Line: 3 Context : div#container
Invalid number : width Parse Error - width=100%
* Line: 7 Context : div#mainwrapper
Invalid number : width Parse Error - width=100%
* Line: 18 Context : div#content
Invalid number : width Parse Error - width=60%
...I will go slither back and try to find out why I can not use
percentages for my widths...


Nothing wrong with percentages but why do you think that an '='
character should be used as an assignment operator for width when you
are using the correct ':' character in all other places?

Change to 'width: 100%' and you should be fine.

--
Rex
Sep 21 '05 #10
ima
> Nothing wrong with percentages but why do you think that an '='
character should be used as an assignment operator for width when you
are using the correct ':' character in all other places?

Change to 'width: 100%' and you should be fine.


Thanks Rex I'm so used to HTML I couldn't see the error. I'll study
some more before posting for more help.

Sep 24 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
7
by: Drew | last post by:
I have a db table like the following, UID, int auto-increment RegNo Person Relation YearsKnown Now here is some sample data from this table,
0
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
4
by: rsteph | last post by:
I've found a javascript menu download, I've been tweaking it within a testpage, and getting it to look just right. I finally got everything looking right, all I have to do is alter where the links...
1
by: soluvah | last post by:
Hello Folks, Been trying to widen my site's body from "779" to "1000" so it almost fills the window. IE 7 on windows XP just dismantles the pages and leaves wide gaps between the left column and...
5
by: smittie31 | last post by:
I am having a problem with a border around me html page. The border does not flow thru the whole html page, it cuts off halfway. --> See http://keithborom.com/marlon-sanders CSS STYLESHEET ...
1
by: raghuvendra | last post by:
Hi I have a jsp page with 4 columns: namely Category name , Category order, Input field and a submit button. All these are aligned in a row. And Each Category Name has its corresponding Category...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.