Possible to add navigation links using CSS?

Discussion in 'Web Design and Development' started by AlBDamned, Sep 13, 2007.

  1. AlBDamned macrumors 68030

    AlBDamned

    Joined:
    Mar 14, 2005
    #1
    Hi guys,

    Using CSS, is it possible to add a line of navigation links in between a banner and body (as below)?

    I'm at the limits of my very limited html knowledge and trying to tweak a Typepad template without going into "Advanced Templates" mode.

    I just want to have a range of links, such as "about" "contact" etc etc.
     

    Attached Files:

  2. jonnylink macrumors 6502

    Joined:
    Jul 15, 2007
    #2
    The short answer: no.

    The longer answer: The idea behind CSS is that it styles a webpage. The X/HTML holds the content. Ideally the two are completely seperate, though often time people include CSS inside the X/HTML. So, when you are talking about content it will always be in the X/HTML only. When you are talking about the styling of the page it will *usually* be in the CSS only, but can also be in the X/HTML.

    Navigation is content. Can't be done in CSS. (sorry)

    EDIT: But I see you have access to the HTML so why not use that?

    Something like this before the page body div:
    Code:
    <div id="navigation">
    <a href="http://mylink.com/">My Link</a>
    <a href="http://my_other_link.com/">My Other Link</a>
    </div>
     
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
    CSS is not the way to go to solve your problem and it can't solve your problem.
     
  4. AlBDamned thread starter macrumors 68030

    AlBDamned

    Joined:
    Mar 14, 2005
    #4
    You're absolutely right.

    However, I did manage to solve the problem. Had to convert the templates to advance and encounter a whole world of pain, but I'm getting there slowly.

    Thanks for the replies though :)
     

Share This Page