Css: when I changed p to span, certain stuff from the class didn't work anymore.?

Discussion in 'HTML and CSS' started by blacklier, Jan 31, 2012.

  1. blacklier

    blacklier

    Joined:
    Jan 31, 2012
    Messages:
    1
    Likes Received:
    0
    (p class="kopje")Over mij: Marrit Schellekens(/p)(br/)
    in kopje i had specified the size and the alignment. When i changed the p to span:
    (span class="kopje")Over mij: Marrit Schellekens(/span)(br/)
    the size still worked, but the alignment didn't. Why is this, and how can i use span, and still have the right allignment. This was the css code:
    .kopje (font-size: 40px;
    text-align:center;
    )
     
    blacklier, Jan 31, 2012
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ricky
    Replies:
    2
    Views:
    4,130
    ricky
    Dec 28, 2005
  2. Jasper Aikema

    variable changed, but i didn't change is.

    Jasper Aikema, Sep 16, 2004, in forum: C Programming
    Replies:
    11
    Views:
    537
    Dan Pop
    Sep 17, 2004
  3. Eric Lilja
    Replies:
    4
    Views:
    694
  4. Fulio Open

    Can span include span?

    Fulio Open, Jun 26, 2009, in forum: HTML
    Replies:
    5
    Views:
    775
    dorayme
    Jun 26, 2009
  5. Stéphane Klein
    Replies:
    2
    Views:
    2,196
    John Nagle
    Mar 30, 2010
  6. Dan Bishop

    DataGrid (body only) contained in <span>...</span> tags

    Dan Bishop, Jun 7, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    492
    Kilic Beg
    Jun 7, 2004
  7. John Carter
    Replies:
    0
    Views:
    207
    John Carter
    Dec 2, 2008
  8. Wang, Jay
    Replies:
    5
    Views:
    803
    Wang, Jay
    May 25, 2004
Loading...