dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: CSS block for anchor

  1. #1
    Join Date
    Nov 2002
    Location
    Canada
    Posts
    65

    CSS block for anchor

    I am trying to create a menu with CSS but my links are giving me trouble. When I style the links this way they are, I cant set a top/bottom border, and same with top/bottom padding.

    When I change it to 'display:block', the styles are applied but they each get placed on a new line. How can I keep them on the same line?

    Thanks,
    Phil

  2. #2
    Join Date
    Nov 2002
    Location
    NY, USA
    Posts
    731
    For inline elements you will have to increase the size of the line-height property for any top/bottom styles to be visible.

  3. #3
    Join Date
    Nov 2002
    Location
    Canada
    Posts
    65
    Perfect, thanks!

Thread Information

Users Browsing this Thread

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

Posting Permissions

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



Recent Articles