Div layout - argh!

This is a discussion on "Div layout - argh!" within the Web Page Design section. This forum, and the thread "Div layout - argh! are both part of the Design Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Jul 6th, 2007, 16:05
New Member
Join Date: Jul 2007
Location: London
Age: 28
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Div layout - argh!

Dear all,

Been struggling with this problem for days...the problem page is http://www.green-england.co.uk/site/tips - i've got two 'float left' divs on the left, and the rest are float right...unfortunately, the top float right div 'green england tips' keeps lining up with the second ('tips') div rather than the first ('at work') div. I've tried swapping round the order of the divs, but that results in this: http://www.green-england.co.uk/site/tips2

I'm going mad trying to sort this out....any suggestions!?

Rob
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 6th, 2007, 16:15
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div layout - argh!

First thing to do is delete the clearing div here
Code: Select all
<li class="menuitem"><a href="/tips/At_Work">At Work</a></li></ul>
</div>
    <div class="clear"></div>    
        <div id="leftbarnews">
            <h4 class="newstitle"><a href="/site/tips"
class="newstitlelnk">How to be Green Tips</a></h4>
That is pushing the Green box tips down.

I would make that a two column layout. Everything you want on the left goes in ONE div. Don't try to stack the div's. Use one div as your column left and then nest all the div's inside it.
Then have one right column div and nest things inside that.

That will solve your issue.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 6th, 2007, 16:24
New Member
Join Date: Jul 2007
Location: London
Age: 28
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div layout - argh!

Lchad, thanks so much for your very quick response. I've got rid of the div clear but now it's more messed up (http://www.green-england.co.uk/site/tips) - I will try creating a single div for the left hand column (there already is one for the right). Should that div just be a #leftcolumn float:left; ?

Thanks again,

Rob
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 6th, 2007, 16:58
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div layout - argh!

Yes use that left div and float it left. Then the big right column can also be floated left.
Just space them with margins.

If you need more help, let me know, I'll have time later to make a mock up.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 6th, 2007, 20:29
New Member
Join Date: Jul 2007
Location: London
Age: 28
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div layout - argh!

No need - what you suggested worked perfectly! Thanks Lchad, you're a star.

Rob
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jul 6th, 2007, 20:33
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div layout - argh!

You're welcome
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 10th, 2008, 17:35
New Member
Join Date: Sep 2008
Location: london
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Re: Div layout - argh!

hey i cant really help you sorry, im really crap at HTML you could say i know nothin about it, i just wanted to ask ya for the code you used in your site but ownly the part you used for navigation that says At Work Recycling At home Take Action
and how you made the links contorl your iframe. as i said before im really new to html so sorry if you dont understand

Last edited by ifizzypop; Sep 10th, 2008 at 17:39.
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

Tags
css, div, float, layout

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
Fluid layout - IE6 clichés the layout when resizing cyberseed Web Page Design 7 Jun 16th, 2007 05:14
movement parameters..... ARGH callumazoo Flash & Multimedia Forum 6 May 31st, 2007 14:19
What makes a layout a good layout? Miles Lombardi Graphics and 3D 4 Jul 26th, 2005 03:22


All times are GMT. The time now is 20:01.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42