473,395 Members | 1,437 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.

Keeping left-hand and right-hand 'columns' in step.


Maybe some kind person can help with a suggestion or two ;-)

I want to construct a banner on a number of pages in the format:

LHS: Text (variable content) RHS. Logo
..... each with a different background colour.

The following test page shows what I'm trying to achieve (borders put in
for diagnostic purposes).

http://www.gododdin.demon.co.uk/ng/testpage2.htm

It seems to work OK in IE6/Opera/Mozilla/Netscape -- except for one
thing.

When I adjust the size of the text to make it larger than 'normal', the
left-hand container expands downwards, to accommodate the additional
vertical space needed -- but what I need is a mechanism for locking the
right-hand container to that expansion in order to maintain the layout.
At the moment the RHS doesn't expand.

Any ideas how I might achieve this?

Thanks
--
Jake
Jul 20 '05 #1
4 2298
"jake" <ja**@gododdin.demon.co.uk> schrieb im Newsbeitrag
news:oj**************@gododdin.demon.co.uk...

Maybe some kind person can help with a suggestion or two ;-)

I want to construct a banner on a number of pages in the format:

LHS: Text (variable content) RHS. Logo
.... each with a different background colour.

The following test page shows what I'm trying to achieve (borders put in
for diagnostic purposes).

http://www.gododdin.demon.co.uk/ng/testpage2.htm

It seems to work OK in IE6/Opera/Mozilla/Netscape -- except for one
thing.

When I adjust the size of the text to make it larger than 'normal', the
left-hand container expands downwards, to accommodate the additional
vertical space needed -- but what I need is a mechanism for locking the
right-hand container to that expansion in order to maintain the layout.
At the moment the RHS doesn't expand.

Any ideas how I might achieve this?


I think you need a HTML table to do that.

--
Markus
Jul 20 '05 #2
jake wrote:

LHS: Text (variable content) RHS. Logo
.... each with a different background colour.

http://www.gododdin.demon.co.uk/ng/testpage2.htm

When I adjust the size of the text to make it larger than 'normal', the
left-hand container expands downwards, to accommodate the additional
vertical space needed -- but what I need is a mechanism for locking the
right-hand container to that expansion in order to maintain the layout.
At the moment the RHS doesn't expand.


I have not the time to test these ideas myself, but judging from the
page, you are certainly capable of executing these ideas and seeing if
it works.

1. display: table-cell (afaik, this only works in Opera)

2. assign height in em or ex to containing div; assign height of inner
divs to 100%

3. put a margin on the containing div and make bgcolor brown; use blue
bgcolor for h1 inside that containing div; positiong logo absolutely
I think this has been asked before, in the context of column layout
using css. Perhaps searching Google/ciwas will help?

--
Brian
follow the directions in my address to email me

Jul 20 '05 #3
In message <3mVKb.85259$xX.597221@attbi_s02>, Brian
<us*****@julietremblay.com.invalid-remove-this-part> writes
jake wrote:
LHS: Text (variable content) RHS. Logo
.... each with a different background colour.
http://www.gododdin.demon.co.uk/ng/testpage2.htm
When I adjust the size of the text to make it larger than 'normal',
the left-hand container expands downwards, to accommodate the
additional vertical space needed -- but what I need is a mechanism
for locking the right-hand container to that expansion in order to
maintain the layout. At the moment the RHS doesn't expand.


I have not the time to test these ideas myself, but judging from the
page, you are certainly capable of executing these ideas and seeing if
it works.

1. display: table-cell (afaik, this only works in Opera)

2. assign height in em or ex to containing div; assign height of inner
divs to 100%

3. put a margin on the containing div and make bgcolor brown; use blue
bgcolor for h1 inside that containing div; positiong logo absolutely
I think this has been asked before, in the context of column layout
using css. Perhaps searching Google/ciwas will help?


Thanks for that.

I tried (2) and that seemed to work in IE, but not the others. So I set
the height on all 3 divs to 100% and that worked on all 4 browsers. As
the text is expanded, so both leftside and rightside divs stay in sync
:-)

http://www.gododdin.demon.co.uk/ng/testpage3.htm

However, the approach breaks down when I try and make the text smaller
as when the 'leftside' div shrinks, it shows the background.

So -- I swapped the background colour of the container div from the
rightside div (brown) to the leftside div (green).

That works OK for text that's set smaller, but not text that's set
bigger.

So, I've now got a solution for when making text either bigger or
smaller -- but not both :-(

I have the feeling that there's a solution around here somewhere ...

I'll have a look around Google/ciwas and see what turns up.
regards
--
Jake
Jul 20 '05 #4
In message <3f*********************@news.easynet.ch>, Markus Ernst
<derernst@NO#SP#AMgmx.ch> writes
"jake" <ja**@gododdin.demon.co.uk> schrieb im Newsbeitrag
news:oj**************@gododdin.demon.co.uk...

Maybe some kind person can help with a suggestion or two ;-)

I want to construct a banner on a number of pages in the format:

LHS: Text (variable content) RHS. Logo
.... each with a different background colour.

The following test page shows what I'm trying to achieve (borders put in
for diagnostic purposes).

http://www.gododdin.demon.co.uk/ng/testpage2.htm

It seems to work OK in IE6/Opera/Mozilla/Netscape -- except for one
thing.

When I adjust the size of the text to make it larger than 'normal', the
left-hand container expands downwards, to accommodate the additional
vertical space needed -- but what I need is a mechanism for locking the
right-hand container to that expansion in order to maintain the layout.
At the moment the RHS doesn't expand.

Any ideas how I might achieve this?


I think you need a HTML table to do that.


Yes, that's one way of doing it.

I could also just create the text as a graphic -- so that it can't be
resized.

regards.
--
Jake
Jul 20 '05 #5

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

Similar topics

1
by: Ray | last post by:
I have a real puzzle, I figured someone on here could help. I have a table that tracks all parents and children. I would like to set iterate over all entities where I set a variable to equal a...
179
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
8
by: Dan | last post by:
When a user clicks on a link in my menu, I want the background color of the link that comes up in the hover to remain on the destination page. My menu looks like this: <div id="adminmenu"> <a...
1
by: Heath | last post by:
Here is my problem: see: http://users.belgacom.net/gc905142/test.htm If you have your resolution set to over 800x600 this issue will probably never be a problem, but I am trying to make...
8
by: Freek te Water | last post by:
Hi, Hope no-one is offended by my probably noob question... Context: I have a web page design, which always centres in the middle of the screen (using a 100%*100% HTML-table). Now I also use...
2
by: Raffi | last post by:
Here's my HTML code. What I'm trying to do is when the button is pushed to refresh the popup window information, I want the popup to return to the front. The way my code is now, when refreshed the...
4
by: Martin Hesselbach | last post by:
Hi folks, I was trying to "pin" a menubar to the top of a site. It should allways stay on its absolute position. Especially when the user scrolls the page... I did like this: <div...
2
by: Sandman | last post by:
Just looking for suggestion on how to do this in my Web application. The goal is to keep track of what a user has and hasn't read and present him or her with new material I am currently doing...
6
by: travismorien | last post by:
I hope there is an easy way to do this... I'm doing a database which keeps track of things that people or entities (entities = trusts and companies) own, among other things. When assets are...
0
by: Rune Jacobsen | last post by:
Hi all, In my project I have a control (described in an earlier post) which basically consists of three "subcontrols": One big area where the vital data is displayed (scrollable, since it will...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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: 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
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.