Results 1 to 11 of 11

Thread: CSS change list

Hybrid View

  1. #1

    CSS change list

    I have next code
    HTML Code:

    HTML Code:
    <ul class='some_class'>
     <li>...</li>
     <li>...</li>
    </ul>
    I want to change it to
    HTML Code:

    HTML Code:
    <ul>
     <li>...</li>
     <li>...</li>
    </ul>
    My question is - how can i write class='some_class' in styles.css?

  2. #2
    Join Date
    Jul 2014
    Location
    Malaysia
    Posts
    61
    Try something like that, add any code into the style.css
    Code:
    .class-name
    {
      padding: ?px ?px;
      color: #?;
      font: normal ?px ;
    }

  3. #3
    As to what Nicolson_AlphaNine stated above that is the proper way to do it, you can as well do it with id's as well just to get started you have two options vertical or horizontal which follows here on this demo i made :

    Demo:
    http://jsfiddle.net/rm42L/

    just a basic idea, hope this helps you further

  4. #4
    Join Date
    Aug 2001
    Posts
    5,597
    Why do you want to remove the class?

  5. #5
    Quote Originally Posted by zoid View Post
    Why do you want to remove the class?
    No one said anything about removing classes, i just gave a suggestion that kaufenpreis can use both either ID's or classes cause they both can be called in the CSS

  6. #6
    Join Date
    Aug 2001
    Posts
    5,597
    Quote Originally Posted by BarakaDesigns View Post
    No one said anything about removing classes
    The OP didnt?

  7. #7
    Hello kaufenpreis,

    I'm not entirely sure what you are asking for. Are you looking for how to set up CSS for 'some_class' in the css file? Are you looking to remove code?
    [B]Scott M

  8. #8
    Join Date
    Oct 2002
    Location
    /roof/ledge
    Posts
    28,074
    Moved from programming, since it's about web design.
    Your one stop shop for decentralization

  9. #9
    Join Date
    Aug 2001
    Posts
    5,597
    All the suggestions about class names in CSS wont work, because this is exactly what the OP removed.

  10. #10
    If you have a parent you can still use .parent ul

  11. #11
    Join Date
    Mar 2012
    Posts
    525
    I suspect the op needs to clarify his question....
    Undefined Variable
    Contact your webmaster.

Similar Threads

  1. Change CSS for Certain Devices with Javascript
    By person287 in forum Web Design and Content
    Replies: 2
    Last Post: 10-18-2011, 04:31 AM
  2. Change mysql database to list from id to alpabetical
    By johnliverpool in forum Programming Discussion
    Replies: 7
    Last Post: 08-14-2011, 12:00 PM
  3. Looking for a list of known CSS bugs
    By n3r0x in forum Web Design and Content
    Replies: 3
    Last Post: 11-22-2009, 07:52 PM
  4. [CSS] List Styling
    By JustinSmall in forum Programming Discussion
    Replies: 1
    Last Post: 10-06-2008, 04:49 PM
  5. design change and css help
    By jbest in forum Web Site Reviews
    Replies: 3
    Last Post: 01-31-2003, 04:04 PM

Posting Permissions

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