dcsimg
A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: CSS Conflict

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    7

    CSS Conflict

    Anyone have a bit of advice on this? The below code is a sidebar on a website i'm putting together. I have created a class in CSS to override the general formatting called "sub." It works fine except when I try to throw a link in with the THIS IS LAME line. The text defaults back to normal. Is this a common problem or do I need to put the link in a special way.

    <div id="sidebar1">

    <ul>
    <div class="sub">
    <li>THIS IS LAME</li>
    </div>

    <li><a href="blah.html">name</a></li>
    <li><a href="blah.html">name</a></li>
    <li><a href="blah.html">name</a></li>
    <li><a href="blah.html">name</a></li>
    <li><a href="blah.html">name </a></li>
    <li><a href="blah.html">name</a></li>
    <li><a href="blah.html">name</a></li>
    <li><a href="blah.html">name</a></li>
    <li><a href="blah.html">name</a></li>
    <li><a href="blah.html">name</a></li>
    </ul>
    <ul>
    <div class="selected">
    <li>THIS IS LAME</a></li>
    </div>
    </ul>

    <!-- end #sidebar1 --></div>

  2. #2
    Junior Member
    Join Date
    Jul 2008
    Posts
    7
    Probably because the a:link text color is overriding?

  3. #3
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    Can you show the CSS and maybe explain a little more what you're trying to do and what's going wrong?

  4. #4
    Junior Member
    Join Date
    Jul 2008
    Posts
    7
    Thanks for replying but i've figured it out. I had a global color set that kept overriding my dreamweaver commands.

    Thank you very much for looking to help a young designer!

  5. #5
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,046
    Your div should also be inside the <li>

    But for what you're doing, you could just apply the sub class to the li element directly:

    <li class="sub"><a href="#">THIS IS LAME</a></li>

  6. #6
    Junior Member
    Join Date
    Jul 2008
    Posts
    7
    Thanks!

  7. #7
    Junior Member
    Join Date
    Sep 2008
    Posts
    3
    nice error solving idea..thanks dude.we have know how to do that

    ----------------------------------------------------------
    banner sign stands trade show display

  8. #8

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center