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
    (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. Advertising

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. Jasper Aikema

    variable changed, but i didn't change is.

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

    Can span include span?

    Fulio Open, Jun 26, 2009, in forum: HTML
    Replies:
    5
    Views:
    576
    dorayme
    Jun 26, 2009
  4. Stéphane Klein
    Replies:
    2
    Views:
    1,859
    John Nagle
    Mar 30, 2010
  5. John Carter
    Replies:
    0
    Views:
    123
    John Carter
    Dec 2, 2008
Loading...

Share This Page