+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Little CSS Question

  1. #1
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Little CSS Question

    Well now I ask you intelligent guys a question on CSS.

    Take a look at this:

    http://projectmicah.com/v2/index2.php

    Hover over the top link and then look at the second link, and you will understand what happens.

    The second link seems to move down about 10px.

    CSS Code:
    Code:
    .navcontent a:link, .navcontent a:visited
    {
    color: #000000;
    text-decoration: none;
    }
    
    .navcontent a:hover
    {
    background-color: #0066FF;
    border: 1px solid #000000;
    color: #FFFFFF;
    text-decoration: none;
    display: block;
    clear: both;
    }
    The person to reply with an answer that works, gets 50pts.

    Regards,
    Zenax
    Last edited by Zenax; 01-18-2007 at 02:34 PM. Reason: LINK UPDATED!
    Regards,
    Zenax

  2. #2
    3aKaT is offline x10 Lieutenant 3aKaT is an unknown quantity at this point
    Join Date
    Aug 2006
    Location
    Moscow, Russia
    Posts
    320

    Re: Little CSS Question

    remove display: block;
    --------------------------
    <a href="http://#">Home[&nbsp;as many as it need]</a> and use <br /> instead <br>
    Last edited by 3aKaT; 01-17-2007 at 05:04 PM.
    vFreeMind - my blog | Blog about vB&WP | FreeFly Online | Girls Love Mood
    ----------
    ----------

  3. #3
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Re: Little CSS Question

    Well that fixed that problem, but is there any way to get it stretch the entire width of the nav area with having to put in &nbsp; ??
    Last edited by Zenax; 01-18-2007 at 03:12 AM. Reason: Spelling Error
    Regards,
    Zenax

  4. #4
    3aKaT is offline x10 Lieutenant 3aKaT is an unknown quantity at this point
    Join Date
    Aug 2006
    Location
    Moscow, Russia
    Posts
    320

    Re: Little CSS Question

    i think in navigation better to use table
    vFreeMind - my blog | Blog about vB&WP | FreeFly Online | Girls Love Mood
    ----------
    ----------

  5. #5
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Re: Little CSS Question

    well I design with divs, but I might try a table

    Still, any suggestions?
    Regards,
    Zenax

  6. #6
    cetutnx1's Avatar
    cetutnx1 is offline x10 Lieutenant cetutnx1 is an unknown quantity at this point
    Join Date
    Nov 2005
    Location
    Córdoba, Argentina
    Posts
    255

    Re: Little CSS Question

    Maybe you can use unordered list, view my attachment

    Then you can change the style of the li, and of the anchor....
    Attached Files
    Last edited by cetutnx1; 01-18-2007 at 08:45 AM.
    Cpanel Username: cet-utn
    Plan: Static Paid.

  7. #7
    t2t2t's Avatar
    t2t2t is offline x10 Elder t2t2t is an unknown quantity at this point
    Join Date
    Sep 2006
    Location
    Europe, Estonia
    Posts
    690

    Re: Little CSS Question

    Code:
    .navcontent a:link, .navcontent a:visited
    {
    color: #000000;
    text-decoration: none;
    width: 100%;
    }
    Try adding red code.
    This post has been marked spam 52 times.


  8. #8
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Re: Little CSS Question

    OK tried both of those suggestions and neither work!

    This could really bug me

    NEW PAGE: http://projectmicah.com/v2/index2.php
    Last edited by Zenax; 01-18-2007 at 02:35 PM.
    Regards,
    Zenax

  9. #9
    oab's Avatar
    oab
    oab is offline
    x10 Lieutenant oab is an unknown quantity at this point
    Join Date
    Apr 2005
    Location
    Olympia, WA
    Posts
    459

    Re: Little CSS Question

    it works for me in firefox the old one not 2, and ie6. what browser were you using?

    EDIT:
    oh yea to stretch it all the way just add width:100%
    and if i was you i would make the hover effect also add some left padding.
    Last edited by oab; 01-19-2007 at 01:58 AM.
    http://www.teamoab.com

    aim:dknigh73
    msn:d_knight_3@hotmail.com

  10. #10
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Re: Little CSS Question

    Yeah I am fixing the code, but when I change it to width 100% it still does not stretch the whole width.

    I think the idea is that I should just do the layout in tables instead, and see what happens when I do that.

    Regards,
    Zenax
    Regards,
    Zenax

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. SQL Question
    By DizzyTechnology in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 01-16-2007, 07:56 PM
  2. Simple Ad Question
    By Death in forum Free Hosting
    Replies: 4
    Last Post: 02-14-2006, 04:46 AM
  3. Question about Phpbb and welcom
    By Mr. Coolkat in forum Free Hosting
    Replies: 2
    Last Post: 10-17-2005, 12:46 PM
  4. Ad Code Question
    By reiterb in forum Free Hosting
    Replies: 1
    Last Post: 08-18-2005, 09:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers