Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Web Development
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 10-31-2006, 04:24 AM   #1
rick
Member
 
rick's Avatar
 
Join Date: Oct 2006
Location: Dallas
Posts: 114
rick will become famous soon enough
Default Need some basic css help?

I've been wanting to use a template like this one on my website.

My Template

I'm just using XHTML and CSS, mainly.

The problem is I only know how to set the sidebars to either a pre-set height or let them expand with the content. When the content in the middle extends past the side bars it looks funny and vice versa.

My question is...am I stuck setting the page to a certain height or is there a way to make everything expand with the longest div?

Someone let me know if this post does not belong here. Thank you.
rick is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 10-31-2006, 10:41 AM   #2
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: Need some basic css help?

The only way I can think to do it is to set a container div that will contain all three divs(the side bars and the content), and set a background image that is 1px in height that repeats. The background image would be a slice of what your 3 divs together are. In other words, an image that has 100px of grey, 400px of white, and another 100px of grey.

If your content is the only thing that will be dynamic, if your side bars will always have the same amount of content, you could just set a container div with a background color of grey, and then put the content div in with a background of white, but then you might get an issue if your content doesn't reach the bottom of the div.

Something I have done is just use percentages in the heights of all three that will expand to below the bottom of the content. The problem with this is you either have to make the page extremely long, or have the possibility that your content could still extend beyond the bottom of your other divs.
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
Old 10-31-2006, 03:49 PM   #3
rick
Member
 
rick's Avatar
 
Join Date: Oct 2006
Location: Dallas
Posts: 114
rick will become famous soon enough
Default Re: Need some basic css help?

Thank you jumpen.

I tried using 100% on all but the sidebars still only extend past the content within them. Yes, a repeating would work as long as content length is about the same on all pages. I've been paying more attention to some other websites, and many of them just let the main content extend past the sidebars, buttons, adverts., etc. This would, probably, be the easiest for me.

Oh well, guess I can't have my cake and eat it too.

Does anyone know a good website where I can learn to put nav menu, footer, etc. in seperate file with php?

Thanks again.
rick is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Closed Thread

(Threads which have no activity for more than 30 days are automatically closed.)



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic HTML Help sagecs Programming 4 11-04-2006 12:20 PM


All times are GMT. The time now is 05:44 AM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.