473,769 Members | 7,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Growing" a Region - dont think first one went thru

Hi -

**I apologize for posting this again. I dont think my first one went
thru**

I am in the process of converting a table based website over to a CSS
based website and I am having a problem.

The website "template" consists of 3 regions: header, sidebar and
content. Header spans horizontally across the screen at the top of the
pages. Sidebar spans vertically starting below header and (is supposed
to) continue to the bottom of the document. Content is the rest of the
document.

The problem is that I need the sidebar region to "grow" with the
content region...as it would had it been contained in a table with
both the sidebar and the content.

Is there some CSS trick that will let me link these two regions or
something so that one will grow with the other?

Thanks in Advance,
Ryan
Jul 20 '05 #1
8 2475

"Ryan R. Rosario" <uc************ ****@NO-SPAMhotmail.com > wrote in message
news:qi******** *************** *********@4ax.c om...
Hi -

**I apologize for posting this again. I dont think my first one went
thru**

I am in the process of converting a table based website over to a CSS
based website and I am having a problem.

The website "template" consists of 3 regions: header, sidebar and
content. Header spans horizontally across the screen at the top of the
pages. Sidebar spans vertically starting below header and (is supposed
to) continue to the bottom of the document. Content is the rest of the
document.

The problem is that I need the sidebar region to "grow" with the
content region...as it would had it been contained in a table with
both the sidebar and the content.

Is there some CSS trick that will let me link these two regions or
something so that one will grow with the other?

Thanks in Advance,
Ryan


Hi
I have read solutions in this group that basically wrap the content (no
position) and side menu (position: absolute; top: 0; left: 0;) in a div
called 'container'. The advantage of this is the menu stuff can be written
in the html after the content stuff which improves search engine
optimisation. The container div needs position: relative on it so it will
act as the containing block for the absolutely positioned div. The heading
across the top of the screen is just a normal div that is written in the
code before the container div so it naturally takes up the correct place in
the normal flow. The menu div being absolutely positioned, has no effect on
the height of the container div as absolutely positioned things are taken
out of the normal flow and have no effect on the layout of other elements.
However, there is the impression that the side menu is growing with the
growing content as the background color of the container div in the same as
the background color of the side menu. The content div has a background
color that is different to the background color of the container div and the
side menu div. You will need to have a margin-left on the content div equal
to the width of the absolutely positioned side menu to bring it out from
below it. (watch out for problems with broken box model - you need the
tantak fix)
HTH
David
Jul 20 '05 #2
Ryan R. Rosario wrote:
The website "template" consists of 3 regions: header, sidebar and
content. Header spans horizontally across the screen at the top of the
pages. Sidebar spans vertically starting below header and (is supposed
to) continue to the bottom of the document. Content is the rest of the
document.

The problem is that I need the sidebar region to "grow" with the
content region...as it would had it been contained in a table with
both the sidebar and the content.


What I did to simulate this (more or less) is create a tiny background
picture (1px high) that is slightly wider then the maximum width of my menu.
When on screen, the menu stays nicely inside the visual border which in fact
is a background picture that has repeat-y set to it.

Only works if you have no other background picture (unless you can work it
in there somehow) and or if you keep the border same colour on all your
pages with a particular stylesheet.

Also mind the remarks by David Graham on menu placement. Not only is the
advantage that searchengines can get to the content right away. Also if
someone (visualy disabled or other reason) has a browser that reads the page
to him / her, the browser doesn't have to repeatedly read the menu on every
page it visits.

--

Barbara

http://home.wanadoo.nl/b.de.zoete/index.html
Jul 20 '05 #3
On Sun, 27 Jul 2003 14:37:58 +0100, "David Graham"
<da************ @ntlworld.com> wrote:
Hi
I have read solutions in this group that basically wrap the content (no
position) and side menu (position: absolute; top: 0; left: 0;) in a div
called 'container'. The advantage of this is the menu stuff can be written
in the html after the content stuff which improves search engine
optimisation . The container div needs position: relative on it so it will
act as the containing block for the absolutely positioned div. The heading
across the top of the screen is just a normal div that is written in the
code before the container div so it naturally takes up the correct place in
the normal flow. The menu div being absolutely positioned, has no effect on
the height of the container div as absolutely positioned things are taken
out of the normal flow and have no effect on the layout of other elements.
However, there is the impression that the side menu is growing with the
growing content as the background color of the container div in the same as
the background color of the side menu. The content div has a background
color that is different to the background color of the container div and the
side menu div. You will need to have a margin-left on the content div equal
to the width of the absolutely positioned side menu to bring it out from
below it. (watch out for problems with broken box model - you need the
tantak fix)
HTH
David


Hi!

Thank you for your help. Your method seems to accomplish what I am
trying to do. It seems that I need to create a DIV (region) and then
two DIVs nested inside of it (subregions) but I am having trouble
figuring out how to implement this with CSS.

Here is my CSS:

DIV.sidebar {
/** This region is just a bar with a background in it **/
position: absolute;
height: auto;
top: 184px;
left: 0em;
background-image: url(common/sidebar-tile.jpg);
background-repeat: repeat-y
}

DIV.content {
margin: 0px 0px 0px 0px;
width: 700px;
height: auto;
position: absolute;
top: 200px;
left: 250px;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10pt;
overflow: hidden;
}

DIV.heading {
position: absolute;
top: 0px;
left: 0em; }

The link to a sample page I am having trouble with:
http://www.math.ucla.edu/~umsa/private/software.shtml
The problem is that the left sidebar, which contains a background
image (I included the bg image in both the CSS file and the SSI
included HTML file to no avail) is not the same height as the
content...it does not "grow" with the content. What changes do I need
to make to my CSS file?

Your help is greatly appreciated :-)

Thanks in Advance,
Ryan
Jul 20 '05 #4
On Sun, 27 Jul 2003 14:37:58 +0100, "David Graham"
<da************ @ntlworld.com> wrote:
Hi
I have read solutions in this group that basically wrap the content (no
position) and side menu (position: absolute; top: 0; left: 0;) in a div
called 'container'. The advantage of this is the menu stuff can be written
in the html after the content stuff which improves search engine
optimisation . The container div needs position: relative on it so it will
act as the containing block for the absolutely positioned div. The heading
across the top of the screen is just a normal div that is written in the
code before the container div so it naturally takes up the correct place in
the normal flow. The menu div being absolutely positioned, has no effect on
the height of the container div as absolutely positioned things are taken
out of the normal flow and have no effect on the layout of other elements.
However, there is the impression that the side menu is growing with the
growing content as the background color of the container div in the same as
the background color of the side menu. The content div has a background
color that is different to the background color of the container div and the
side menu div. You will need to have a margin-left on the content div equal
to the width of the absolutely positioned side menu to bring it out from
below it. (watch out for problems with broken box model - you need the
tantak fix)
HTH
David


Hi!

Thank you for your help. Your method seems to accomplish what I am
trying to do. It seems that I need to create a DIV (region) and then
two DIVs nested inside of it (subregions) but I am having trouble
figuring out how to implement this with CSS.

Here is my CSS:

DIV.sidebar {
/** This region is just a bar with a background in it **/
position: absolute;
height: auto;
top: 184px;
left: 0em;
background-image: url(common/sidebar-tile.jpg);
background-repeat: repeat-y
}

DIV.content {
margin: 0px 0px 0px 0px;
width: 700px;
height: auto;
position: absolute;
top: 200px;
left: 250px;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10pt;
overflow: hidden;
}

DIV.heading {
position: absolute;
top: 0px;
left: 0em; }

The link to a sample page I am having trouble with:
http://www.math.ucla.edu/~umsa/private/software.shtml
The problem is that the left sidebar, which contains a background
image (I included the bg image in both the CSS file and the SSI
included HTML file to no avail) is not the same height as the
content...it does not "grow" with the content. What changes do I need
to make to my CSS file?

Your help is greatly appreciated :-)

Thanks in Advance,
Ryan
Jul 20 '05 #5

"David Graham" <da************ @ntlworld.com> wrote in message
news:uk******** *************@n ewsfep2-win.server.ntli .net...
sidemenu div needs left:0 as well as top:0

I should also add that the headind div is not nested inside the container
div - the structure is like below:

<div class="heading" >
..........
</div> <!-- end heading -->

<div class="containe r">
<div class="content" >
...........
</div> <!-- end content -->
<div class="sidemenu e">
.............
</div> <!-- end sidemenue -->
</div> <!-- end container -->

HTH
David
Jul 20 '05 #6
On Mon, 28 Jul 2003 16:31:30 +0300, Lauri Raittila
<la***@raittila .cjb.net> wrote:
In article <jd************ *************** *****@4ax.com>, Ryan R. Rosario
wrote:

Thank you for your help. Your method seems to accomplish what I am
trying to do. It seems that I need to create a DIV (region) and then
two DIVs nested inside of it (subregions) but I am having trouble
figuring out how to implement this with CSS.


Example:
http://www.student.oulu.fi/~laurirai...olute_pos.html


Doesn't work in Opera 7 though - the two columns are different heights.
Though my own attempt at something similar,
http://www.xs4all.nl/~sbpoley/webmatters/layout3.html doesn't either, so
I guess we have to put that down to an Opera 7 bug.

My version is a little simpler, though it doesn't give one the option of
placing the menu at then end.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #7
In article <us************ *************** *****@4ax.com>, Stephen Poley
wrote:
On Mon, 28 Jul 2003 16:31:30 +0300, Lauri Raittila
<la***@raittila .cjb.net> wrote:
In article <jd************ *************** *****@4ax.com>, Ryan R. Rosario
wrote:

Thank you for your help. Your method seems to accomplish what I am
trying to do. It seems that I need to create a DIV (region) and then
two DIVs nested inside of it (subregions) but I am having trouble
figuring out how to implement this with CSS.
Example:
http://www.student.oulu.fi/~laurirai...olute_pos.html


Doesn't work in Opera 7 though - the two columns are different heights.


I see I tested it bit badly. Using Opera 7 ;-)

(but that was because I made it as example for something else.)
Though my own attempt at something similar,
http://www.xs4all.nl/~sbpoley/webmatters/layout3.html doesn't either, so
I guess we have to put that down to an Opera 7 bug.
That one works here, 7.2b2.
My version is a little simpler, though it doesn't give one the option of
placing the menu at then end.


Or having lots of links. This is somewhat better, but it should brake on
Opera anyway when having lots of links:
http://www.student.oulu.fi/~laurirai...float2col.html

So Opera is buggy. I don't know why there is difference, as there
shouldn't be.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #8
In post <qi************ *************** *****@4ax.com>
Ryan R. Rosario said...

The website "template" consists of 3 regions: header, sidebar and
content. Header spans horizontally across the screen at the top of the
pages. Sidebar spans vertically starting below header and (is supposed
to) continue to the bottom of the document. Content is the rest of the
document.

The problem is that I need the sidebar region to "grow" with the
content region...as it would had it been contained in a table with
both the sidebar and the content.


perhaps you can adapt one of these (but neither are supported by IE
because its shit)

1-3-1 100% available height layout
http://usenet.alt-html.org/1-3-1-css-layout.html

2-1-3-1 content of areas dictates height layout
http://usenet.alt-html.org/2-1-3-1-css-layout.html
--
brucie a. blackford. 29/July/2003 11:15:09 pm kilo.
http://loser.brucies.com/
Jul 20 '05 #9

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

Similar topics

8
1872
by: Yannick Turgeon | last post by:
Hello all, We are currently changing our web server and, in the process, updating PHP version from 4.3.0 to 4.3.5. The problem we've got is that our PHP applications generate errors saying that some of the variables are Undefined. I didn't use "if(isset($myVar))" to validate if a variable has been passed from a HTML form but instead "if($myVar)".
36
6400
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but something I'll need in this case is some experience-based set of rules about how to use python in this context. For example... is defining readonly attributes in classes worth the hassle ? Does duck-typing scale well in complex
10
13274
by: Jay Chan | last post by:
I keep getting the following error message when I run a serie of SQL commands: Server: Msg 9002, Level 17, State 6, Line 15 The log file for database 'tempdb' is full. Back up the transaction log for the database to free up some log space. I have tried "dump transaction tempdb with no_log" right before I run the SQL command. But that doesn't help.
99
6239
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a small or mid-sized business. http://groups-beta.google.com/group/microsoft.public.msdn.general/browse_thread/thread/9d7e8f9a00c1c7da/459ca99eb0e7c328?q=%22Proposed+MSDN+subscription+changes%22&rnum=1#459ca99eb0e7c328 Damn! To be that...
20
2754
by: John Bailo | last post by:
http://www.joelonsoftware.com/articles/APIWar.html "So you've got the Windows API, you've got VB, and now you've got .NET, in several language flavors, and don't get too attached to any of that, because we're making Avalon, you see, which will only run on the newest Microsoft operating system, which nobody will have for a loooong time. And personally I still haven't had time to learn .NET very deeply, and we haven't ported Fog...
24
7667
by: Hardy | last post by:
I'm pretty new in this field. when reading some 70x material, I met with this term but cannot catch its accurate meaning. who can help me? thanks in advance:)~
1
6203
by: Trygve Lorentzen | last post by:
Hi, my webservice is running on Win2000 SP4, IIS 5.0 fully patched, connecting to a MySQL database and mainly returning Typed DataSet's from webmethods. After running for a while, generally a few days, the webservice stops responding and the .NET windows app client fails with no informative error message. When I try to run any webmethod from the webservice locally in the browser I first get a "This page cannot be display IE error...
0
1629
by: mgtimelogger | last post by:
The Canadian government would rather program peoples minds than in C. See below. Shocking New Book Published "Canada's Spies Attacked Me: A True Story of CSIS Terrorizing a Canadian Abroad" Champaign, IL (PRWEB) April 23, 2006 -- Canada's Spies Attacked Me: A True Story of CSIS Terrorizing a Canadian Abroad is a autobiography about how the Canadian Security Intelligence Service (CSIS) attacked the author, Mark Garzone, in America.
169
9214
by: JohnQ | last post by:
(The "C++ Grammer" thread in comp.lang.c++.moderated prompted this post). It would be more than a little bit nice if C++ was much "cleaner" (less complex) so that it wasn't a major world wide untaking to create a toolchain for it. Way back when, there used to be something called "Small C". I wonder if the creator(s) of that would want to embark on creating a nice little Small C++ compiler devoid of C++ language features that make...
0
9589
marktang
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...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10214
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, 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...
1
9996
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
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 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...
0
8872
agi2029
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...
1
7410
isladogs
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...
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.