SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Merging two lists

    Can I merge two lists in my CSS, I want to do it in my CSS because I have separate media queries and I only want this to apply to one media query.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,324
    Mentioned
    462 Post(s)
    Tagged
    8 Thread(s)
    Hi keepStriving. Welcome to the forums.

    Could you give an example of what you mean? What does merging two lists mean? If possible, post a code example, as shown here: http://www.sitepoint.com/forums/show...Posting-Basics

  3. #3
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have two separate lists, one for navigation to external pages and on to internal points in page, both in separate navbars and I wish to have one list in a navbar which contains the main with sublist of the page underneath each page. I only want this to occur for one media query.

    similar to this:
    http://css.maxdesign.com.au/listamatic2/vertical02.htm#

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,324
    Mentioned
    462 Post(s)
    Tagged
    8 Thread(s)
    Without seeing your code, we can only give a general answer. You can group styles for common features in CSS. For example, if your first menu has a class of "first" and your second "second", you can group common styles like so:

    Code:
    .first, .second {
      list-style: none; background: blue;
    }
    .first li, .second li {
      float: left; border: red;
    }
    ... and so on.


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
  •