A new html learner is here. Please help.
I write a two column web page. Their widths are both fixed.
The left one is a menu and the right one is mainly for content
display. I pasted a few lines as the following:
#leftcolumn{
background-color: white;
clear: left;
width: 176px;
margin-left: 3px;
margin-right: 3px;
float: left;
margin-top: 3px;
}
#rightcolumn{
background-color: transparent;
width: 560px;
float: left;
overflow: auto;
border-left: 1px solid #C3C3C3;
padding-left: 10px;
padding-right: 10px;
margin-top: 6px;
padding-bottom: 1em;
}
The web page is correct when the browser's window is wide enough;
it behaves incorrectly when the window is narrow. That is say the
right column automatically flushes to underneath the left column.
What property can be specified to lock the right column?
Thank you very much, 13 2171
I'm pretty new at this, too, but perhaps you could put both column into
another <div'box' with adequate width for both the left and right column,
560 + 176 px. (I'm not sure, but you might have to add in the width of the
margins also.)
It's worth a try until some of the more experienced folks make their
suggestions.
good luck.
"kw" <bi**@village.o rgwrote in message
news:f3******** **@mailhub227.i tcs.purdue.edu. ..
>A new html learner is here. Please help.
I write a two column web page. Their widths are both fixed.
The left one is a menu and the right one is mainly for content
display. I pasted a few lines as the following:
#leftcolumn{
background-color: white;
clear: left;
width: 176px;
margin-left: 3px;
margin-right: 3px;
float: left;
margin-top: 3px;
}
#rightcolumn{
background-color: transparent;
width: 560px;
float: left;
overflow: auto;
border-left: 1px solid #C3C3C3;
padding-left: 10px;
padding-right: 10px;
margin-top: 6px;
padding-bottom: 1em;
}
The web page is correct when the browser's window is wide enough;
it behaves incorrectly when the window is narrow. That is say the
right column automatically flushes to underneath the left column.
What property can be specified to lock the right column?
Thank you very much,
kw wrote:
A new html learner is here. Please help.
I write a two column web page. Their widths are both fixed.
You *are* new.
The left one is a menu and the right one is mainly for content
display. I pasted a few lines as the following:
#leftcolumn{
background-color: white;
clear: left;
width: 176px;
margin-left: 3px;
margin-right: 3px;
float: left;
margin-top: 3px;
}
#rightcolumn{
background-color: transparent;
width: 560px;
float: left;
overflow: auto;
border-left: 1px solid #C3C3C3;
padding-left: 10px;
padding-right: 10px;
margin-top: 6px;
padding-bottom: 1em;
}
The web page is correct when the browser's window is wide enough;
it behaves incorrectly when the window is narrow. That is say the
right column automatically flushes to underneath the left column.
No, that's correct, too. You've made them floats, and you've given them
pixel-based widths, so the browser complies as ordered. No problem there.
The real problem, I would say, is the idea of fixed widths. You're
requiring all visitors to have a browser viewport of 182 + 580 = 762px.
Anything wider, and the user has empty, wasted space to the right of
their viewport. Any narrower, and they see what you're complaining
about, although what you really want is that they get a horizontal
scrollbar. Horizontal scrolling is best avoided.
So the real answer, I would say, is to use percentage widths, or some
design which is more flexible.
But another idea is to remove the floats, and add a left margin of about
182px to the right element. That'll push it right of the left element,
and it'll stick out into space on the right side of the UA.
Setting widths in pixels is rather icky, though, and I recommend you
avoid it (unless, say, you're working with images alone, for which
pixels are natural units). If it's nav left and text content right that
you've got, consider ems or, as I said, % widths (you have to pay
attention to what the percentages are percentages of, but you'll work it
out).
May I suggest you rename your #leftcolumn to something semantically
contextual, such as #nav, and #rightcolumn to something like #content?
>
What property can be specified to lock the right column?
If you want to "lock", don't "float".
--
John
kw wrote:
A new html learner is here. Please help.
I write a two column web page. Their widths are both fixed.
The left one is a menu and the right one is mainly for content
display. I pasted a few lines as the following:
#leftcolumn{
background-color: white;
clear: left;
width: 176px;
margin-left: 3px;
margin-right: 3px;
float: left;
margin-top: 3px;
}
#rightcolumn{
background-color: transparent;
width: 560px;
float: left;
overflow: auto;
border-left: 1px solid #C3C3C3;
padding-left: 10px;
padding-right: 10px;
margin-top: 6px;
padding-bottom: 1em;
}
The web page is correct when the browser's window is wide enough;
it behaves incorrectly when the window is narrow. That is say the
right column automatically flushes to underneath the left column.
What property can be specified to lock the right column?
Enclose both divs in a fixed-width wrapper. Also, float the #rightcolumn
div right, not left. This will create a natural gutter between the two
columns provided the widths of the two nested divs fall short of the
width of the wrapper.
JD wrote:
kw wrote:
>A new html learner is here. Please help. I write a two column web page. Their widths are both fixed. The left one is a menu and the right one is mainly for content display. I pasted a few lines as the following:
#leftcolumn{ background-color: white; clear: left; width: 176px; margin-left: 3px; margin-right: 3px; float: left; margin-top: 3px; }
#rightcolumn { background-color: transparent; width: 560px; float: left; overflow: auto; border-left: 1px solid #C3C3C3; padding-left: 10px; padding-right: 10px; margin-top: 6px; padding-bottom: 1em; }
The web page is correct when the browser's window is wide enough; it behaves incorrectly when the window is narrow. That is say the right column automatically flushes to underneath the left column.
What property can be specified to lock the right column?
Enclose both divs in a fixed-width wrapper. Also, float the #rightcolumn
div right, not left. This will create a natural gutter between the two
columns provided the widths of the two nested divs fall short of the
width of the wrapper.
If you use "a fixed-width wrapper", you are likely to force right-left
scrolling for any user whose window is not wide enough. This is so
annoying that you will lose some of your audience.
Instead, follow the advice in earlier replies to use percentage widths.
That way, your page will adapt to whatever window width the user has.
--
David E. Ross
<http://www.rossde.com/>.
Don't ask "Why is there road rage?" Instead, ask
"Why NOT Road Rage?" or "Why Is There No Such
Thing as Fast Enough?"
<http://www.rossde.com/roadrage.html>
David E. Ross wrote:
JD wrote:
>kw wrote:
>>A new html learner is here. Please help. I write a two column web page. Their widths are both fixed. The left one is a menu and the right one is mainly for content display. I pasted a few lines as the following:
#leftcolumn { background-color: white; clear: left; width: 176px; margin-left: 3px; margin-right: 3px; float: left; margin-top: 3px; }
#rightcolum n{ background-color: transparent; width: 560px; float: left; overflow: auto; border-left: 1px solid #C3C3C3; padding-left: 10px; padding-right: 10px; margin-top: 6px; padding-bottom: 1em; }
The web page is correct when the browser's window is wide enough; it behaves incorrectly when the window is narrow. That is say the right column automatically flushes to underneath the left column.
What property can be specified to lock the right column?
Enclose both divs in a fixed-width wrapper. Also, float the #rightcolumn div right, not left. This will create a natural gutter between the two columns provided the widths of the two nested divs fall short of the width of the wrapper.
If you use "a fixed-width wrapper", you are likely to force right-left
scrolling for any user whose window is not wide enough. This is so
annoying that you will lose some of your audience.
And yet the Web is packed to the nines with fixed-width designs,
including high-profile sites that cater to enormous and diverse
audiences, e.g. http://news.bbc.co.uk/ .
If I was browsing the Web in anything less than 800x600 I would expect
to see my horizontal scrollbar pretty often. It's not such a big deal
either because most fixed-width sites use multi-column layouts, and
usually the individual columns of multi-column sites will fit in a
narrow display nicely, even if the entire width of the site won't. So,
you can simply scroll the relevant column into the confines of the
display in order to read it comfortably (for me, the annoying thing is
not horizontal scrolling per se, but having to scroll along while
reading). In my view, this is no worse than the site squishing down to
absurdly narrow proportions, or the structure breaking as described in
the original post.
Instead, follow the advice in earlier replies to use percentage widths.
That way, your page will adapt to whatever window width the user has.
Instead, look at what people are doing in the real world. If successful
websites are using fixed-width layouts, you can be pretty confident that
it doesn't send too many visitors away screaming.
JD wrote:
>
If successful
websites are using fixed-width layouts, you can be pretty confident that
it doesn't send too many visitors away screaming.
Consider also that these big web sites, like BBC, are often successful
in spite of their sites, not because of them. Name recognition goes a
long way in tolerating a lousy site.
--
Berg
In article <5c************ *@mid.individua l.net>, Bergamot
<be******@visi. comwrote:
JD wrote:
If successful
websites are using fixed-width layouts, you can be pretty confident that
it doesn't send too many visitors away screaming.
Consider also that these big web sites, like BBC, are often successful
in spite of their sites, not because of them. Name recognition goes a
long way in tolerating a lousy site.
Yes, definitely. I hate the way the width of the page never expands
when you zoom the text size so you can actually read the stupid page...
I can mostly understand designers wanting to avoid having everything
horribly squished if the user makes the window too narrow, but why would
you not want your text content to be able to make the best use possible
of a window which is actually wider than 800 pixels, especially if the
user might very well want to enlarge the text size?
You'd think with the increasing number of boomers getting shortsighted
with age that some senior managers somewhere would actually be insisting
on this...
In comp.infosystem s. www.authoring.html message <MaSdnQMs-vhv-MLbnZ2dneKd nZ******@iswest .net>, Thu, 31 May 2007 17:18:57, David E. Ross
<no****@nowhere .notposted:
> If you use "a fixed-width wrapper", you are likely to force right-left scrolling for any user whose window is not wide enough. This is so annoying that you will lose some of your audience.
Nor necessarily. My windows generally open nominally 480 px wide, and
that very commonly shows the interesting part without revealing the
advertisements.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Delphi 3? Turnpike 6.05
<URL:http://www.merlyn.demo n.co.uk/TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.bancoems.co m/CompLangPascalD elphiMisc-MiniFAQ.htmclpd mFAQ;
<URL:http://www.borland.com/newsgroups/guide.htmlnews: borland.* Guidelines
Bergamot wrote:
JD wrote:
If successful
websites are using fixed-width layouts, you can be pretty confident that
it doesn't send too many visitors away screaming.
Consider also that these big web sites, like BBC, are often successful
in spite of their sites, not because of them. Name recognition goes a
long way in tolerating a lousy site.
Yes, the names "MySpace" and several other large sites includeing
some newspaper websites come to mind.
--
Regards Chad. http://freewebdesign.awardspace.biz This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: VK |
last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked"
question.
This question led to a long discussion about the naming rules applying to
variables, objects, methods and properties in JavaScript/JScript and
HTML/XML elements.
Without trying to get famous :-) but thinking it would be interesting to
others I decided to post the following summary:
1. Variable names in JavaScript/JScript
|
by: Francois Keyeux |
last post by:
hello everyone:
i have a web site built using vbasic active server scripting running on
iis (it works on either iis 50 and 60, but is designed for iis 50)
i know how to create a plain text email by creating a text file, with
content following certain format, and saving that file into the correct
'..\mailroot\pickup' folder, and it is working fine
|
by: cirillo_curiosone |
last post by:
Hi,
i'm new to javascript. I started studing it on the web few weeks ago,
but still haven't been able to solve one big problem: HOT TO PASS VALUES
FROM A SCRIPT VARIABLE TO A CHILD HTML GENERATED BY FUNCTION.
Here'e the point:
I'm writing a simple website for showing my photographs. It has a
central page with many links (as many as galleries are).
|
by: LRW |
last post by:
http://gto.ie-studios.net/index.php
When you view the above site in IE, if the 1st of the three product
images is tall enough to push the cell down a couple of pixels, IE
somehow doesn't show that happening.
But if you look at it in Firefox you can see the small gap of white
where the semi-circle image is broken.
I've tried changing the background colors to gray in cells and tables
|
by: Boris Ammerlaan |
last post by:
This notice is posted about every week. I'll endeavor to use the same
subject line so that those of you who have seen it can kill-file the
subject; additionally, Supersedes: headers are used to ensure that
only one copy resides on a given news server.
This notice was last updated on March 9th, 2005, and is available
(with a complete revision history) on the World Wide Web at
http://www.stack.nl/~boris/HTML/ciwahfaq.html. Most of it was...
| |
by: Patient Guy |
last post by:
Taking the BODY element as an example, all of its style attributes
('alink', 'vlink', 'background', 'text', etc.) are deprecated in HTML 4.01,
a fact noted in the DOM Level 2 HTML specification.
The DOM specification does not explicitly itself deprecate the use of
attributes however for the element in the interface definition section I
read.
Is there text in the DOM specification that states specifically that the
DOM specification...
|
by: serge calderara |
last post by:
Dear all,
I am new in asp.net and prepare myself for exam
I still have dificulties to understand the difference between server control
and HTML control.
Okey things whcih are clear are the fact that for server control component ,
code is running on the server side.
But if I take as example a Label. I place on a webform an HTM label control
and a WebForm label control, I could see that properties are different for
|
by: Guy Macon |
last post by:
cwdjrxyz wrote:
HTML 5 has solved the above probem. See the following web page:
HTML 5, one vocabulary, two serializations
http://www.w3.org/QA/2008/01/html5-is-html-and-xml.html
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |