Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-22-2012, 07:40 PM   PM User | #1
wallflower
New to the CF scene

 
Join Date: Apr 2012
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
wallflower is an unknown quantity at this point
HTML Div Help

Hi! I need help doing something complicated, although I thought it would be simple to do.

What I want is three divs all in one row, the first two 150px in width, and the last one I want it to stretch to the end of the screen, depending on the screen size of the viewer. I achieved the 3 divs in a row using float:lefts.

Also, I wanted the third div to scroll horizontally only in the div, meaning I don't want the scroll-bar to be on the bottom of the entire screen. (this I already managed, just wondering if I can achieve it with this code in tact)

So basically this is what I want:

Menu 150px | Submenu 150px | Images all the way to the end of screen to right.


If I set the width of the third div to 100%, it goes to a new line and literally fills 100% width of the whole screen.

Help, I'm still kind of a beginnger!

Edit: I figured it out.

Last edited by wallflower; 04-22-2012 at 09:11 PM..
wallflower is offline   Reply With Quote
Reply

Bookmarks

Tags
css, div, float, html, width

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 05:59 PM.


Advertisement
Log in to turn off these ads.