+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: css problem

  1. #1

    Default css problem

    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

  2. #2
    Join Date
    Aug 2006
    Location
    Sydney, Australia
    Posts
    10

    Default

    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;


  3. #3
    Join Date
    Jun 2006
    Location
    Norfolk, UK
    Posts
    838

    Default

    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!
    Adam Spencer
    SilverLine Web Solutions
    www.silverlinewebsolutions.co.uk

  4. #4

    Default

    Cheers guys
    I'll try that now.

    Anyone tried it in ie6 yet?

    Cheers
    John

  5. #5

    Default

    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

  6. #6

    Default

    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?

  7. #7

    Default

    Try giving it a line-height value of the whole button, that should align it
    Andrew Taylor
    Technical Support

    CS New Media Web Hosting

  8. #8

    Default

    Try this:

    .navlinks {
    height: 200px;
    width: 320px;
    line-height:200px;
    }
    Andrew Taylor
    Technical Support

    CS New Media Web Hosting

  9. #9
    Join Date
    Apr 2007
    Location
    Fife, Scotland
    Posts
    369

    Default

    IE 6 screenshot. Can't persuade myself to upgrade yet to 7 as firefox caters for all my needs :)
    Attached Images

  10. #10
    Join Date
    Mar 2007
    Location
    Cardiff, UK
    Posts
    459

    Default

    Quote Originally Posted by siphilp View Post
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. SQL Problem
    By Hawthorneweb in forum Databases - SQL Server 2008 / MySQL
    Replies: 7
    Last Post: 26-08-2008, 09:27 AM
  2. SQL Problem
    By sladmin in forum Databases - SQL Server 2008 / MySQL
    Replies: 7
    Last Post: 24-07-2008, 07:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts