css text problem

Discussion in 'CSS' started by lws009, Sep 9, 2009.

  1. #1
    Hi all

    Is there a possibility to put a paragraph of text in an italic kind of way? so not just a straigt text down but a littlebit "fallen" to the left.

    Greetz
     
    lws009, Sep 9, 2009 IP
  2. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #2
    For sure..

    
    <p class="italic">My Paragraph Text</p>
    
    Code (markup):
    With the CSS
    
    .italic { font-style:italic; }
    
    Code (markup):
    Or to do it inline (try to avoid using inline styling and keep your CSS in an external stylesheet though)
    
    <p style="font-style: italic">My Paragraph Text</p>
    
    Code (markup):
     
    wd_2k6, Sep 9, 2009 IP
  3. lws009

    lws009 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No, this is not what I need, its hard to explain (english isn't my mother tongue)

    I want it like the header on this page http://www.csszengarden.com/?cssfile=/165/165.css&page=5
    I know this text is in an image but is it possible to do it without putting it in an image?

    Greets
     
    lws009, Sep 9, 2009 IP
  4. 1 FineLine

    1 FineLine Peon

    Messages:
    78
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    can't you just add <em>?

    <em>text here</em>
     
    1 FineLine, Sep 9, 2009 IP
  5. lws009

    lws009 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    No, look, it is my intention to tilt the whole paragraph a couple of degrees.
     
    lws009, Sep 9, 2009 IP
  6. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #6
    What you are asking for is ROTATION, not italic. The entire box is rotatated, not slanted.

    ... In theory you could use a -moz property for firefux, a -webkit property for saffy/chrome, and a filter to do that in IE, but that still leaves opera out in the cold - though there you could use SVG ....

    But using browser specific stuff to implement things is usually a bad idea.

    In theory it's coming in CSS3, though nobody has implemented it yet...

    So for now, use an image.
     
    deathshadow, Sep 10, 2009 IP
  7. frank.t

    frank.t Guest

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks lws009 for showing me how to italicise my font.
     
    frank.t, Sep 30, 2009 IP