SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot Paul_M's Avatar
    Join Date
    Mar 2001
    Location
    London
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question HTML entities + CSS

    Does anyone know if you can change the size the 2 when you do &sup2; (&_sup2_; <- i put the underscores so that you could see what i was talkin about )
    i don't want to manually change the FONT size...
    ..i guess this is done with CSS.
    Help

  2. #2
    SitePoint Zealot 19nine78's Avatar
    Join Date
    Feb 2002
    Location
    Ayr, scotland
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    put:

    sup{
    font-size:whatever
    }

    in your stylesheet

    cheers

    alastair

  3. #3
    SitePoint Zealot Paul_M's Avatar
    Join Date
    Mar 2001
    Location
    London
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cheers alastair...thats what i thought... but it doesn't make a difference to the entities ( &_sup2_; and &_sup3_; )
    it does change the stuff i put in <_sup_> tags tho!

  4. #4
    SitePoint Zealot 19nine78's Avatar
    Join Date
    Feb 2002
    Location
    Ayr, scotland
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aaah ok, got you now, too obvious a question for me

    you best bet is to wrap each entity in a span and use css classes if you need to change their styling independantly from the text.

    cheers

    alastair

  5. #5
    SitePoint Zealot Paul_M's Avatar
    Join Date
    Mar 2001
    Location
    London
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    will do.

    cheers dude...

    wica wica massive


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
  •