View Full Version : css problem
level200
11-04-2007, 11:44 AM
Hi Guys
I'm having a few problems with this layout: http://www.level200.co.uk/layout/
I'm trying to get the list for the nav to display in the middle of the box with each text link displaying in the middle of each box instead of the top.
Any suggestions?
Also can anyone check the layout in i.e. 6 please.
Cheers
John
fredblogs
11-04-2007, 01:52 PM
You need to add a text-align declaration
.navlinks {
height: 200px;
width: 320px;
vertical-align: middle;
Change to
.navlinks {
height: 200px;
width: 320px;
text-align: center;
:D
sladmin
11-04-2007, 01:52 PM
Make sure the text isn't wrapped in a paragraph tag. I had a problem with this and it took me ages to sort out!
level200
11-04-2007, 03:52 PM
Cheers guys
I'll try that now.
Anyone tried it in ie6 yet?
Cheers
John
level200
11-04-2007, 04:05 PM
Hi Guys
Sorry perhaps I wasnt clear enougth, I want the text link to be left justified but sitting in the left/ middle of the hover box (roll over the text to have a look its at the top of the box) also I would like the text links to sit in the middle/ left of the nav area.
Hope thats clearer... i think :)
Chears
John
level200
11-04-2007, 05:09 PM
Ok I'm getting there: http://www.level200.co.uk/layout/
Now I have tried to align the text so that it displays verticle/ middle of the hover box and have used: vertical-align: middle; and it still displays at th etop of the hover box..
Any ideras?
Andrew Taylor
11-04-2007, 06:25 PM
Try giving it a line-height value of the whole button, that should align it
Andrew Taylor
11-04-2007, 06:32 PM
Try this:
.navlinks {
height: 200px;
width: 320px;
line-height:200px;
}
siphilp
11-04-2007, 09:36 PM
IE 6 screenshot. Can't persuade myself to upgrade yet to 7 as firefox caters for all my needs :)
Mark Voss
11-04-2007, 11:24 PM
Can't persuade myself to upgrade yet to 7 as firefox caters for all my needs :)
You should look at siphilp.co.uk in FF2 & IE7 ;)
Carl Shepherdson
11-04-2007, 11:32 PM
You should look at siphilp.co.uk in FF2 & IE7 ;)
http://www.siphilp.co.uk/Blog/63/Internet+Explorer+7.aspx :D
siphilp
12-04-2007, 08:47 AM
FF looks fine to me :( IE 7 I know, I know is just lazyness. I upgraded IE and my laptop just took a performance hit so went back to IE 6..
Actually just looking at my site it appears that the css files are my old ones :S Up'd my latest should be fine ;) Feel free to confirm. Might have to watch that. Am moving over my cms to CS some point this week :)
Mark Voss
12-04-2007, 11:07 AM
Yep, it's looking good in FF2 now ;)
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.