The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

HTML/CSS

FrysdiskenFrysdisken Registered User regular
edited January 2010 in Help / Advice Forum
Hi, I'm having a problem with my HTML/CSS code.
I'm trying to get rid of the double border in the navigation panel.

http://codeviewer.org/view/code:b5b

I've removed some of the code. I hope it won't make it harder too help me with my problem.

Frysdisken on

Posts

  • DelzhandDelzhand Registered User, Transition Team regular
    edited January 2010
    I'm guessing it's because you have the border attribute being rendered for each <a> element in the <ul>. Try moving the border 1px solid #000 to just the <ul>. That's my guess without actually seeing the page itself.

    Edit: Just tested it - that works. However, if you want borders around each element, here's something to consider:
    ul{
      border: 1px solid #000;
      border-bottom: 0px;
    }
    
    ul a{
      border-bottom: 1px solid #000;
    }
    

    Delzhand on
  • FrysdiskenFrysdisken Registered User regular
    edited January 2010
    Thanks!

    Also is it possible loading the links inside the navigation panel into the content area?

    Example, I have some text that I want displayed in the content area when pressing the links in the navigation panel.

    Frysdisken on
  • bowenbowen Sup? Registered User regular
    edited January 2010
    That'd probably be a frame or javascript thing.

    bowen on
    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • iamthepiemaniamthepieman Registered User regular
    edited January 2010
    Frysdisken wrote: »
    Thanks!

    Also is it possible loading the links inside the navigation panel into the content area?

    Example, I have some text that I want displayed in the content area when pressing the links in the navigation panel.

    something like this:
    function displayText() {
    document.getElementById('description').innerHTML='newtext';
    }
    
    <a href="" onClick="displayText();return true">Click Here To Display Text</a>
    

    and then in your html somewhere have a div or span with id of 'description'
    <div id="description">
    Old Text being displayed
    </div>
    

    iamthepieman on
Sign In or Register to comment.