Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old December 22nd, 2006, 07:03 AM   #1
New Member
 

Join Date: Nov 2006
Location: London
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Sporky is on a distinguished road
Adjust columns / divs

Hi,
I have another query. I am working on a site with two columns (divs). The one is for the navigation and the other one is the content.
I can not figure out how I can make the navigation div adjust to the height of the contents div.

I tried Javascript, but that does not work and I tried to find answers in tutorials but can not find a solution.

Can anyone help?

Thanks and merry Christmas

Sporky
Sporky is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old December 22nd, 2006, 08:18 AM   #2
Elite Veteran
 
Ryan Fait's Avatar
 

Join Date: May 2006
Location: Las Vegas
Posts: 3,784
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough
Re: Adjust columns / divs

You need a wrapper div for this.

Code:
<div class="wrapper">
    <div class="side">
        <p>Links</p>
    </div>
    <div class="content">
        <p>Content</p>
    </div>
</div>
Make the wrapper have the background you want for the side bar. Float the side bar to the left and the content to the right. Make the content div have the background you'd like and voila, instant pseudo columns.
Ryan Fait is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old December 22nd, 2006, 09:49 AM   #3
New Member
 

Join Date: Nov 2006
Location: London
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Sporky is on a distinguished road
Re: Adjust columns / divs

Hi,
Thank you again - that sounds easy and very straight forward. Will give it a try
Regards
Sporky
Sporky is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old December 23rd, 2006, 09:26 AM   #4
Elite Veteran
 
Ryan Fait's Avatar
 

Join Date: May 2006
Location: Las Vegas
Posts: 3,784
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough
Re: Adjust columns / divs

No problem. Good luck with getting into the swing of CSS.
Ryan Fait is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old December 23rd, 2006, 10:21 AM   #5
New Member
 

Join Date: Aug 2006
Location: United States
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 webrodie is on a distinguished road
Re: Adjust columns / divs

Let us know if it works. If it doesn't, post the code you are working with so we can look at it. What ryan posted earlier should work though.
webrodie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
adjust , columns , divs , faux


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

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

BB 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
How can I adjust my layout so... mcdanielnc89 HTML, XHTML and CSS 4 November 23rd, 2007 02:56 AM
2 columns alexgeek HTML, XHTML and CSS 2 August 14th, 2007 07:57 PM
3 Columns with CSS Pádraig Your Design and Layout 8 May 31st, 2007 05:32 AM
Three columns R8515198 HTML, XHTML and CSS 5 May 24th, 2007 03:16 PM
How do I preserve the appearance and still adjust for resolution? willow82 HTML, XHTML and CSS 1 October 18th, 2006 05:10 PM


Search Engine Optimization by vBSEO 3.2.0 RC8