473,395 Members | 1,530 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,395 software developers and data experts.

Surply 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 for that
is adding to my page width? I've tried changing the right margin for
the rightcolumn but even if I move 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 problem has been posted at link below.
http://www.kencoffman.com/pagewidthproblem.htm

Sep 19 '05 #1
5 1452
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.


Those add up to 100%. Then there is the default margins outside of
that. Try setting all margins to 0 and see what happens. You may have
to reduce the percentages to a bit less than 100 as well.

Please only ask your question once. Thanks.

--
-bts
-This space intentionally left blank.
Sep 19 '05 #2
ima

Beauregard T. Shagnasty wrote:
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.
Those add up to 100%. Then there is the default margins outside of
that. Try setting all margins to 0 and see what happens. You may have
to reduce the percentages to a bit less than 100 as well.


Thank you Beauregard for taking the time to look and offer your
suggestions. It is appreciated!

The second line in my css file:
* {margin:0;padding:0;}

I've tried using even 90% width and the elements get tighter together
but the scroll bar remains. Since my last posting on Sunday, I've
discovered that this problem is somehow related to monitor size. A
smaller monitor produces no horizontal scroll bar but my 19" monitor
does. It all seems backwards to me but those appear to be the facts.
If it's only larger monitors that produce this scroll bar I guess I
won't lose sleep over it. My concern was if that was the "normal"
display of my code.
Please only ask your question once. Thanks.

Thank you for the courtesy of being nice about it. I waited over 6
hours for my first post to appear. It didn't, so I tried again Sunday
evening and even that one didn't appear until hours later.

Sep 20 '05 #3
ima wrote:
Beauregard T. Shagnasty wrote:
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.
Those add up to 100%. Then there is the default margins outside
of that. Try setting all margins to 0 and see what happens. You
may have to reduce the percentages to a bit less than 100 as
well.

Thank you Beauregard for taking the time to look and offer your
suggestions. It is appreciated!

The second line in my css file:
* {margin:0;padding:0;}


But you add margins and stuff all through the CSS file (which is
rather hard to read as constructed). You should also use ems instead
of pixels for sizing. I don't have the time to try and decipher all of
that complicated typing.

And change this: font-size:.8em to font-size: 100% (which is
everyone's default size)

I see Verdana... bad designer, no donut.

Use some whitespace, too. Look at the layout of this one of mine:
http://home.rochester.rr.com/bshagnasty/style/shag.css
I've tried using even 90% width and the elements get tighter
together but the scroll bar remains. Since my last posting on
Sunday, I've discovered that this problem is somehow related to
monitor size. A smaller monitor produces no horizontal scroll bar
but my 19" monitor does. It all seems backwards to me but those
appear to be the facts. If it's only larger monitors that produce
this scroll bar I guess I won't lose sleep over it. My concern was
if that was the "normal" display of my code.


Have a read of this template, and see if you get any ideas.
http://benmeadowcroft.com/webdev/css.../3-column.html

"Did no one else notice that the board did not move ..."

It's not a board. It's a newsgroup.

--
-bts
-This space intentionally left blank.
Sep 20 '05 #4
ima
> But you add margins and stuff all through the CSS file (which is
rather hard to read as constructed). You should also use ems instead
of pixels for sizing. I don't have the time to try and decipher all of
that complicated typing. I understand what you're saying and I am TRYING to get better at this
but this is the stage I'm at now. I thank you for the examples and I
will study them.
And change this: font-size:.8em to font-size: 100% (which is
everyone's default size) Thanks for the tip. I had read about sizing width to 100% but not
font-size. A question comes to mind though. If I have declared
font-size:1em then wouldn't 100% = 1em?
I see Verdana... bad designer, no donut. OK.. I'll bite, why is Verdana bad? I'd like to learn so that I can
one day feel worthy of that donut.
Use some whitespace, too. Look at the layout of this one of mine:
http://home.rochester.rr.com/bshagnasty/style/shag.css
Have a read of this template, and see if you get any ideas.
http://benmeadowcroft.com/webdev/css.../3-column.html I will study them both.
It's not a board. It's a newsgroup.

OK... Point taken. The difference is lost on me but I'll trust you.

Thanks for the education.

Sep 21 '05 #5
ima wrote:
[Beauregard wrote:]
But you add margins and stuff all through the CSS file (which is
rather hard to read as constructed). You should also use ems
instead of pixels for sizing. I don't have the time to try and
decipher all of that complicated typing.


I understand what you're saying and I am TRYING to get better at
this but this is the stage I'm at now. I thank you for the
examples and I will study them.


It all takes time. It will be second nature soon.
And change this: font-size:.8em to font-size: 100% (which is
everyone's default size)


Thanks for the tip. I had read about sizing width to 100% but not
font-size. A question comes to mind though. If I have declared
font-size:1em then wouldn't 100% = 1em?


1em is equal to 100%, but Internet Exploder has issues with using em.
A visitor might increase his text size from smaller to medium, and the
actual result could double!
I see Verdana... bad designer, no donut.


OK.. I'll bite, why is Verdana bad? I'd like to learn so that I
can one day feel worthy of that donut.


The font is too large, and developers frequently try to compensate by
setting fonts to .. .8em <g> Visitors without Verdana installed
will need magnifying glasses.
http://www.xs4all.nl/~sbpoley/webmatters/verdana.html
Use some whitespace, too. Look at the layout of this one of mine:
http://home.rochester.rr.com/bshagnasty/style/shag.css Have a
read of this template, and see if you get any ideas.
http://benmeadowcroft.com/webdev/css.../3-column.html


I will study them both.


Learn by example - but pick good examples. :-)

--
-bts
-This space intentionally left blank.
Sep 21 '05 #6

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

Similar topics

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...
2
by: nino9stars | last post by:
Hello, I have just started messing with absolute positioning on webpages, and it definitely let's you do some creative things. Well, after much searching and help, I got the images I was using...
0
by: Sergio E. | last post by:
Hello, I have a problem with masterpages and forms security. I made a new Web site, in which I have my page of login like of beginning, a master page with only a sitemappath object in it, the...
0
by: sjickells | last post by:
Hi I am having a problem using asp:TextBox's in a transparent table. I have a background image on the page and a table in the middle of the page. I have set the background colour of the table...
1
by: kchaitanya | last post by:
I have created a master page. When I am adding this master page to .aspx files which are in the root directory, it is working fine. When , I am adding master page to .aspx files which are in sub...
4
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...
2
coolv
by: coolv | last post by:
Hello I have problem in my page that the dropdown box is not displaying data according to selection of first dropdown.Please help me. Below is my code. thanks.............. <?php ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.