Jump to content

[SOLVED] Trying to learn to use divs instead of tables


Recommended Posts

For reference see http://99.224.95.32/div, there are five areas. Area 4 is to show below area 1, but be wider than area 1. Area 5 is to show below area 3 but we wider. Area 2 is to show up between area 1 & 3. See the attached picture to see what I want to do.

 

Thanks.

 

[attachment deleted by admin]

I assume that you want to know how to do this (you didn't ask a question).

 

Google '3-column layout alistapart' to get a good 3-column layout for the top half, and then add two divs underneath it using a 2-column layout technique. Just keep them entirely separate.

 

I should warn you though, that you will probably find this fairly difficult if you are new to CSS. It's not an easy layout you have chosen there.

I was able to do this: http://99.224.95.32/div/index.htm with only tables. I didn't think you could do column spanning like that. Still I'd like to figure out how to do that with div's because I've read that using tables for layout is bad style, even though I don't see why.

well its Pretty simple mate ...

First Creat your main frame size -- the size that your whole size be in for e.g 1024 /768 .. or what ever by makeing  a big div like this ...

 

#Bigframe {
Position:reletive;
Hight:769px;
Width:1024px;
}

thats will make you big frame .. -- just check my spelling laters thoughs .

then you make the smaller Frames the way you want ...

 

#Fram1 {
left:5px;
Position:reletive;
Hight:100px;
Width:500px;
}

#Fram2 {
Left:510px;
Position:reletive;
Hight:100px;
Width:500px;
}
#Fram3 {
Left:xxx  what ever works for you 
Position:reletive;
Hight:xxxx what ever works for you 
Width:xxx  what ever works for you 
}
#Fram4 {
Left:xxxxx  what ever works for you 
Position:reletive;
Hight:xxxx  what ever works for you 
Width:xxxx  what ever works for you 
}


 

as simple as that then in the body you just call this Frams to appear by divs or what ever you like Span / P/table/ allmost everything will work i thinks

[body]
<div id="Bigframe ">
<div id="Fram1"></div>
<div id="Fram2"></div>
<div id="Fram3"></div>
<div id="Fram4"></div>
</div>
</body>

 

thats it basicaly and just put what ever you like inside this dives

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.