SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist Worldbuilder's Avatar
    Join Date
    Jan 2004
    Location
    Boston, MA
    Posts
    481
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Class isn't working

    Hi all.

    Code from the php file:
    Code:
    <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    <p class="browsing">You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives.</p>
    <?php } ?>
    Page is at http://www.bartlett-family.net/chris...t/blog2/?cat=1

    You can see on the right where the text is right below the blog search.

    Why is the text not formatted to the left?
    CSS code:
    Code:
    .browsing {
    	text-align: left;
    }
    Simple enough. I've put in other CSS attributes just to test. Absurd things like font-family: Arial, Helvetica, Sans-Serif;
    & font-size: 8em; just to see if I was missing something small.

    Nothing, the class just isn't working. Huh?

    Chris

  2. #2
    SitePoint Addict
    Join Date
    Feb 2004
    Location
    Netherlands
    Posts
    381
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what's the html around it?

  3. #3
    ~unplugged Ainslie X11's Avatar
    Join Date
    Feb 2005
    Location
    Langley, Virginia
    Posts
    1,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure if I found the right main.css - there's a couple of them at the site, and I couldn't see text-align: left in either of them.
    Try removing the
    <li><p>bla</p></li>
    and make it <p>bla</p>
    There's an indent being created by the <li>, otherwise provided the p has text-align: left, it should render correctly

    Edit: The codes reading <li><p>You are currently browsing the archives for the General category.</p></li>

    not <p class="browsing">You are currently browsing the archives for the General category.</p>


    working hard is hard work


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
  •