Dynamic <div> tags (alternative)

This is a discussion on "Dynamic <div> tags (alternative)" within the Web Page Design section. This forum, and the thread "Dynamic <div> tags (alternative) are both part of the Design Your Website category.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 24th, 2007, 08:46
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
Dynamic <div> tags (alternative)

Hi Everyone.

I am currently developing a site using div tags, i have a menu down the left then a bestsellers box right underneath it, on some pages the menu is bigger but it does not push the bestsellers box down automatically. Does anybody know how to combat this without using javascript?

thanks, danny
Reply With Quote

  #2 (permalink)  
Old Oct 24th, 2007, 08:50
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Dynamic <div> tags (alternative)

You would need to use faux columns, but i am not sure because i havent seen your code!

http://www.alistapart.com/articles/fauxcolumns/
Reply With Quote
  #3 (permalink)  
Old Oct 24th, 2007, 09:06
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Dynamic <div> tags (alternative)

Any other suggestions? didnt seem to work
Reply With Quote
  #4 (permalink)  
Old Oct 24th, 2007, 10:27
Up'n'Coming Member
Join Date: Oct 2007
Location: 'HD' - Soon to be 'FY' home. ;)
Age: 32
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Dynamic <div> tags (alternative)

If the menu and the bestsellers box are within a container div this should happen automatically.

Could do with seeing the site really.
Reply With Quote
  #5 (permalink)  
Old Oct 24th, 2007, 10:29
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Dynamic <div> tags (alternative)

http://www.design365.co.uk/toys/
Reply With Quote
  #6 (permalink)  
Old Oct 24th, 2007, 10:32
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Dynamic <div> tags (alternative)

You need to clear your floats.

In your code, beneath the "welcome to gifts and toys" <div>, add the following code:

Code: Select all
<div style="clear: both"></div>
Reply With Quote
  #7 (permalink)  
Old Oct 24th, 2007, 10:47
Up'n'Coming Member
Join Date: Oct 2007
Location: 'HD' - Soon to be 'FY' home. ;)
Age: 32
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Dynamic <div> tags (alternative)

Mike knows a bit more than me as I didn't see that solution ^^

Here my 2 pence just in case it helps in some way.

It seems to me your doing the whole site the long way round.

I would have

div for the header/logo
div for the main navigation
container div
footer div

Within the container div I would have 2 more container divs. One for the search+nav+bestsellers (floated left) and one for the rest of the content (Floated left)
Then everything inside the search+nav+bestsellers div should just flow vertically automatically regardless of what is in your content div.

Last edited by Nortus; Oct 24th, 2007 at 10:51.
Reply With Quote
Reply

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
Title Tags, Meta Tags and SEO - Keyword Density or Keyword Spamming? pctank Search Engine Optimization (SEO) 2 Jul 4th, 2008 11:52
Alternative to frames jonnymorris Web Page Design 13 May 10th, 2008 09:23
Alternative to Site5? SmokeyBubbles Hosting & Domains 7 Jun 27th, 2007 16:32
ppc alternative timmytots Webforumz Cafe 0 Dec 15th, 2006 17:27
Alternative stylesheets benbacardi Web Page Design 18 May 14th, 2004 13:22


All times are GMT. The time now is 09:16.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs 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 43