Webmaster Forum

Sponsored Reviews   PR6 Link Building Service   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 01-22-2008, 04:01 PM   #1 (permalink)
Ola
Junior Member
 
Join Date: 06-14-07
Posts: 3
iTrader: 0 / 0%
Latest Blog:
None

Ola is liked by many
CSS: Position layers

Hi, I need some advice on the CSS layout of my site. The page structure and the order they appear on the page looks like this, simplified:

[header]
[top menu]
[content]
[bottom menu]
[copyright notice][site credits]

Each one of the elements has its on <div>.

The objective: I want to be able to allow the [content] layer to grow without overlapping the [bottom menu],[copyright notice] and [site credits] layers.

Each page in the site has different amount of content that needs to be contained within the [content] layer. However, I would like to be able to use only one <div> for the [content] layer throughout the site. The layers[bottom menu], [copyright notice] and [site credits] needs to be positioned relative to the [content] layer.

Initially I positioned all the layers using absolute positioning but then I realized that I can't keep the content to the same amount on every page! -

How should I structure the positioning of the above layers to do this?

Many thanks
Ola
__________________
Ola Andersson
Olango Web Services
olango.net
Ola is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 01-22-2008, 11:55 PM   #2 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,846
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
before I'll go further, I have a small innocent question: "Why don't you use a table?".

About your code, as you don't need to use floating or relative positioning, just set up a fixed with (if you'd like) of your main layout container and the rest of the inner containers (like header, menu, content...) set up to a 100% width.

I think that'll be all...
__________________
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-23-2008, 12:45 AM   #3 (permalink)
Ola
Junior Member
 
Join Date: 06-14-07
Posts: 3
iTrader: 0 / 0%
Latest Blog:
None

Ola is liked by many
CSS: Position layers

yes, you are right. It might be the easiest. I have been so determined to only use CSS on this site that I had ruled it out but I suppose a table has its place!
__________________
Ola Andersson
Olango Web Services
olango.net
Ola is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Heck of a time with layers!! fcarfora Coding Forum 2 06-01-2007 01:56 PM
problem with layers and text ithirstforchaos Web Design Lobby 4 03-22-2007 03:25 PM
Problems with layers written_word Web Design Lobby 1 09-20-2006 11:57 AM
Draggable Layers SN3 Coding Forum 0 07-14-2006 02:25 PM
Got Layers? UbErNoOber_GraphicDesigns Graphic Design Forum 34 03-17-2004 02:33 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 09:27 PM.
© Copyright 2008 V7 Inc


Search Engine Optimization by vBSEO 3.1.0 ©2007, Crawlability, Inc.