Results 1 to 11 of 11

Thread: CSS change list

  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
    62
    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
    4,537
    Why do you want to remove the class?
    Sitemeer.com ● Multi-Location Service Availability Check
    Not just HTTP! Proper HTTPS support, detailed timing statistics and full IDN compliance


  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
    4,537
    Quote Originally Posted by BarakaDesigns View Post
    No one said anything about removing classes
    The OP didnt?
    Sitemeer.com ● Multi-Location Service Availability Check
    Not just HTTP! Proper HTTPS support, detailed timing statistics and full IDN compliance


  7. #7
    Join Date
    Jan 2013
    Posts
    66
    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?

  8. #8
    Join Date
    Oct 2002
    Location
    Middle Dearth
    Posts
    21,309
    Moved from programming, since it's about web design.
    Having problems, or maybe questions about WHT? Head over to the help desk!

  9. #9
    Join Date
    Aug 2001
    Posts
    4,537
    All the suggestions about class names in CSS wont work, because this is exactly what the OP removed.
    Sitemeer.com ● Multi-Location Service Availability Check
    Not just HTTP! Proper HTTPS support, detailed timing statistics and full IDN compliance


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

  11. #11
    Join Date
    Mar 2012
    Posts
    431
    I suspect the op needs to clarify his question....
    HOST4GO
    〓 Web Hosting - Domains - SSL - Managed Services - Managed VPS

  12. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

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
  •