corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » css problem


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author css problem
Jodi_the_g
Member

Registered: 7th Aug 01
Location: Washington D.C
User status: Offline
4th Feb 09 at 18:24   View User's Profile U2U Member Reply With Quote

I have 3 div class inside one that I have as columns

for example
code:

<div class ="main">
<div class = main-left">
div class ="main- center">



Now they all fit in perfect but I want the left and right one set pixels which I have done but how do I set the middle one to fill in the gap.

width:100% does not seem to work, and I can not for the life of me remember how I done it in the past.
Laney
Member

Registered: 6th May 03
Location: Leeds
User status: Offline
4th Feb 09 at 18:49   View User's Profile U2U Member Reply With Quote

Got a width on the outer div?
Jodi_the_g
Member

Registered: 7th Aug 01
Location: Washington D.C
User status: Offline
4th Feb 09 at 21:27   View User's Profile U2U Member Reply With Quote

Sorry yeah both the outer and nearside have a width just not the center.
Jodi_the_g
Member

Registered: 7th Aug 01
Location: Washington D.C
User status: Offline
4th Feb 09 at 22:00   View User's Profile U2U Member Reply With Quote

code:

.main-left {display:inline; float:left; width:200px; overflow:visible; overflow:hidden;}
.main-center {display:inline; float:left; width:auto; overflow:visible; overflow:hidden;}
.main-center-tags {}

.main-right {
display:inline;
float:right;
width:300px;
background:url(../images/tt.gif);
overflow:visible; overflow:hidden;

Paul_J
Member

Registered: 6th Jun 02
Location: London
User status: Offline
4th Feb 09 at 22:17   View User's Profile U2U Member Reply With Quote

remove the width:auto from the main. Just don't have a width value at all for it.

I think the way I've done it in the past is...

have 1 as a frame for all 3 to be inside.

<div class=frame>
<div class=left></div>
<div class=center></div>
<div class=right></div>
</div>

however, I've not done any css for ages so could be talking balls
Jodi_the_g
Member

Registered: 7th Aug 01
Location: Washington D.C
User status: Offline
5th Feb 09 at 12:05   View User's Profile U2U Member Reply With Quote

Thats what I tried Paul, all inside a frame but it just seems to knock the right down to the next level.

Laney
Member

Registered: 6th May 03
Location: Leeds
User status: Offline
5th Feb 09 at 12:33   View User's Profile U2U Member Reply With Quote

Margin: 0 auto on the middle one maybe?
Jodi_the_g
Member

Registered: 7th Aug 01
Location: Washington D.C
User status: Offline
5th Feb 09 at 13:40   View User's Profile U2U Member Reply With Quote

The CSS file

code:

.main {
clear:both;
width:100%;
padding-bottom:30px;
background:transparent url(../images/bg_main_withnav.jpg) top left repeat-y;
}

.left {
display:inline;
float:left; width:200px;
}

.center {
display:inline;
float:left;
width:inherit;
font-family:Tahoma;
font-size:11px;
line-height:15px;
text-align: justify;
color:#323232;
padding-top:5px;
margin-right:auto;
}

.right {
display:inline;
float:right;
width:185px;
margin 15px 0 0;
}



Html file
code:

<div class=main>
<div class=left></div>
<div class=center></div>
<div class=right></div>
</div>


 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
CSS webdesign help Houckham Geek Day 3 895
20th Apr 06 at 11:01
by Houckham
 
FAO: Webmasters: CSS Bart Geek Day 14 1125
24th Oct 06 at 14:57
by Ian
 
Input on a website please, web designers especially :D drunkenfool Geek Day 56 3017
25th Nov 06 at 19:08
by aPk
 
Web Design/CSS = IE problem after problem :mad: liamC Geek Day 10 652
15th Nov 07 at 00:41
by Steve
 
CSS Help Jodi_the_g Geek Day 5 710
11th Nov 08 at 16:42
by Jodi_the_g
 

Corsa Sport » Message Board » Off Day » Geek Day » css problem 29 database queries in 0.1289680 seconds