Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Rotate div background not text

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #45301
    simmi
    Participant

    i have created div and rotation is done.. i want to rotate only back ground image ,div text should not rotate ??

    how to do this

    Fiddle::
    http://jsfiddle.net/simmi_simmi123/sesZv/3/

    #137698
    Paulie_D
    Member

    I’d think you would have to wrap the text in an element and rotate it back the other way.

    #137699
    sumitweb
    Participant

    Hi Simmi

    Just see on code jsfiddle:http://jsfiddle.net/simmi_simmi123/sesZv/3/

    #137700

    This might work:

    [Link](http://cdpn.io/BpwvH “link”)

    I’ve transform the box to scale -1, 1 and in the same time I scale the text (in the span) in the opposite way.

    #137703
    sumitweb
    Participant
    #137711
    simmi
    Participant

    @adahei i want image and text in same div , i want to use only 1 div

    #137714
    Paulie_D
    Member

    Works fine with a bg image: http://codepen.io/Paulie-D/pen/ahpsD

    #137734
    simmi
    Participant

    @Paulie_D i need div containig bg image and text . i cant place span inside div

    #137735
    Paulie_D
    Member

    All text should be wrapped in in some sort of text tag such as a p or span. I don’t understand why you can’t add this.

    #137740
    wolfcry911
    Participant

    I’d go further and state that text should _not_ be wrapped in **solely** div _and/or_ span. Neither have any semantic value whatsoever – even if classed.

    #137742
    Paulie_D
    Member

    >I’d go further and state that text should not be wrapped in solely div and/or span. Neither have any semantic value whatsoever – even if classed.

    This was my point but I was on on my phone and couldn’t expand further.

    At a minimum **raw** text should be in a `p` tag unless wrapped in a anchor link of course and even then it’s not a bad idea.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘CSS’ is closed to new topics and replies.