Jump to content


3 table css


6 replies to this topic

#1 Stu

    Retired P2L Staff

  • Publishing Betazoids
  • PipPipPipPip
  • 1,761 posts
  • Gender:Male

Posted 08 October 2005 - 03:04 PM

hello

i have this section of my layout, it has 3 uneven sections to it covering the lenght of the layout.

i can position section 1 & 3 using css ( float: left; and float: right; ), but i cannot position the middle one properly. is there any way i can position it using coordinates or anything?

before and after images below:

Posted Image
Posted Image

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 08 October 2005 - 03:49 PM

A link to the actual source so we can see exactly what you're doing would be nice. But other then that, try floating the middle one left.

I also hear the CSS section of this site has tons of tutorials for 3 column CSS layouts... run through those and see if you can get any ideas.

#3 Stu

    Retired P2L Staff

  • Publishing Betazoids
  • PipPipPipPip
  • 1,761 posts
  • Gender:Male

Posted 08 October 2005 - 03:56 PM

rc69, on Oct 8 2005, 08:49 PM, said:

A link to the actual source so we can see exactly what you're doing would be nice. But other then that, try floating the middle one left.

I also hear the CSS section of this site has tons of tutorials for 3 column CSS layouts... run through those and see if you can get any ideas.
ive had a look thorugh tutorials i cant seem to find anything. a few have given me some ideas but to no avail.

unfortuantely i have not got it online atm, but here is the relevant code i have:

css:

Quote

#head-container{
margin: auto;
width: 709px;
height: 100px;
background-color: white;
color: black;
}

#head-bar{
margin: auto;
width: 709px;
height: 19px;
color: black;
background: url("images/head-bar.gif");
}

#head-content1{
margin: auto;
width: 253px;
height: 67px;
color: black;
background: url("images/head-content1.gif");
float: left;
}

#head-content2{
margin: auto;
width: 297px;
height: 67px;
color: black;
background: url("images/head-content2.gif");
}

#head-content3{
margin: auto;
width: 159px;
height: 67px;
color: black;
background: url("images/head-content3.gif");
float: right;
}

#head-bottom{
margin: auto;
width: 709px;
height: 14px;
color: black;
background: url("images/head-bottom.gif");
}

html:

Quote

<div id="head-container">
<div id="head-bar"></div>
<div id="head-content1"></div>
<div id="head-content2"></div>
<div id="head-content3"></div>
<div id="head-bottom"></div>
</div>


#4 d7x

    P2L Jedi

  • Twodded Staff
  • PipPipPip
  • 586 posts
  • Gender:Male
  • Location:Virginia
  • Interests:Life

Posted 08 October 2005 - 06:29 PM

try using clear: both; in head-bottom css code

all floats require clear: both; somewhere

http://www.pixel2lif...showtopic=13350 - may give u some ideas to try

Edited by d7x, 08 October 2005 - 06:30 PM.


#5 coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 08 October 2005 - 08:57 PM

d7x, on Oct 8 2005, 11:29 PM, said:

all floats require clear: both; somewhere
not true...


use float:left;
on all three of three columns.

#6 d7x

    P2L Jedi

  • Twodded Staff
  • PipPipPip
  • 586 posts
  • Gender:Male
  • Location:Virginia
  • Interests:Life

Posted 08 October 2005 - 10:19 PM

well its best to use it...

#7 Stu

    Retired P2L Staff

  • Publishing Betazoids
  • PipPipPipPip
  • 1,761 posts
  • Gender:Male

Posted 09 October 2005 - 04:02 AM

thanks alot fellas, i used float: left; on all of them it seems to work ok now :worthy:





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users