Results 1 to 4 of 4

Thread: my css displaying inline is displaying over text

  1. #1
    Join Date
    Jul 2005
    Posts
    223
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Question my css displaying inline is displaying over text

    Code:
    #billboard {
    color: #ffffff;
    font: 14px arial;
    height: 25px;
    margin: 0 25px 0 25px;
    padding: 0;
    position: absolute;
    bottom: 17px;
    width: 850px;
    }
    .billcontent {
    width: 100%;
    }
    #billboard a {
    color: #ffffff;
    display: inline;
    }
    Code:
    <div id="billboard">
    <div id="billboard0" class="billcontent">Japan Townへようこそ!!</div>
    <div id="billboard1" class="billcontent">The <a href="/japanchat.php?frames">chat room</a> and message board are open!!</div>
    <div id="billboard2" class="billcontent">Enjoy the new site design!!</div>
    </div>
    page: http://japantown.awardspace.com/

    wait 5 seconds for the billboard to change.

    if i do not display it inline, the link gets displayed below the line, displaying it inline makes it display over the text following it.

    how can I make it display normally?
    Last edited by Johnnymushio; 04-24-2011 at 09:06 AM.
    My Web Site
    Japan Town

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    It's because in your CSS:
    Code:
    #header a {
    display: block;
    position: absolute;
    }
    That link is inheriting the position.
    Jeremy | jfein.net

  3. The Following User Says Thank You to Nile For This Useful Post:

    Johnnymushio (04-24-2011)

  4. #3
    Join Date
    Jul 2005
    Posts
    223
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    Thanks, I didn't think to change position.
    My Web Site
    Japan Town

  5. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    No problem, I'm glad to help

    Here on DD, we like to keep things organized. In an effort to do so, you have the option to set a thread to resolved when an issue is fixed. To make the status of the thread resolved:
    1. Go to your first post
    2. Edit your first post
    3. Click "Go Advanced"
    4. In the dropdown next to the title, select "RESOLVED"
    Jeremy | jfein.net

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
  •