Jump to content


Photo

Div layout


  • Please log in to reply
5 replies to this topic

#1 johnnyk

johnnyk
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 16 August 2006 - 02:56 AM

Does anyone know of a good tutorial that describes how to mimic table layouts with div?
Rediscover the Web:
<a href="http://www.spreadfir...;t=219"></a><br />

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 16 August 2006 - 04:17 AM

You don't mimic tables with divs!!! ;)

Tables are for information - so don't use them for layout.

http://www.w3.org/20...csslayout-howto a reasonable starting point.

follow me on twitter @PHPsycho

#3 johnnyk

johnnyk
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 16 August 2006 - 04:29 AM

I found that one, didn't help me too much cause they don't show what the html would look like. And what if I wanted there to be space to the left of list1 and the right of list2?

Know of any other tutorials?
Rediscover the Web:
<a href="http://www.spreadfir...;t=219"></a><br />

#4 foreverhex

foreverhex
  • Members
  • PipPipPip
  • Advanced Member
  • 91 posts

Posted 16 August 2006 - 02:30 PM

This one helped me out a bit.
http://www.barelyfit...ss/positioning/

#5 johnnyk

johnnyk
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 16 August 2006 - 02:53 PM

That's the second css layout tutorial I've seen that put Latin in the div. What's the deal with that?
Rediscover the Web:
<a href="http://www.spreadfir...;t=219"></a><br />

#6 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 16 August 2006 - 03:01 PM

I would not recommend using positioning when doing a CSS Layout as you'll are bound come into lots of problems. Using floats and clear is much easier when doing a CSS layout.

About the Latin text most developers tend to put some random text into a layout to get a better visual understanding of what the layout will look like when its finsihed, especially if the layout going to have dynamic text if the sites is being coded in PHP etc.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users