WordPress.org

Ready to get started?Download WordPress

Forums

Help with CSS (4 posts)

  1. brave
    Member
    Posted 10 years ago #

    i got problem with my css layout.. i've tried to read css tutorial, but it seem my brain too slow to understand.. this is my test file http://l-amore.org/test.php the problem i have is, i cant change the title and category font, even i already edited the css for that.. the strangest thing is *for me* if i try to put in another place the author, the table will come out without scroll.. *that not what i want*. and why my comment not styled with the css that i set.. my css file is http://l-amore.org/test.css .. if anyone help me with this.. i'll very appreciate it.. coz im stuck on this for a week.. *sigh*

  2. seriocomic
    Member
    Posted 10 years ago #

    From what I can see (and excuse me but the non-english references make it a bit harder) is that you are defining the style for your title and categories in your style sheet as classes and referring to them in your markup as divs. E.g:
    (in style sheet)
    .judulpost {
    text-align: center;
    font-size: 10pt;
    color: #333333;
    }

    when it should be #judalpost.
    Hope that helps.
    Mike
    http://www.seriocomic.com

  3. NuclearMoose
    Member
    Posted 10 years ago #

    Surf on over to http://www.communitymx.com where you will find loads of information about CSS and other web development "stuff." There are lots of free CSS articles and you can subscribe to the site or buy individual articles for a small fee. Check it out! It's a great resource site, and is growing every day. CMX has a lot of well-known experts in the web dev field - they are worth a look. There are free articles for other things as well. The focus on CMX is in using the MM Studio MX tool suite, but a lot of their articles are far more generic.
    Craig.

  4. macewan
    Member
    Posted 10 years ago #

    // In the xhtml file //
    <div class="bob">text</div>
    <div id="larry">text</div>
    -----------------------------------------------------------
    // In the css file //
    div.bob {
    text-align: center;
    font-size: 12pt;
    color: #333;
    }
    div#larry {
    text-align: center;
    font-size: 10pt;
    color: #ccc;
    }
    -----------------------------------------------------------
    div.bob is a class.
    div#larry is an id.
    -----------------------------------------------------------
    classes would be used more than once, like with paragraphes in a blog.
    id's are used once like with a copyright notice at the bottom of page.
    -----------------------------------------------------------

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.