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
I’d think you would have to wrap the text in an element and rotate it back the other way.
Just see on code jsfiddle:http://jsfiddle.net/simmi_simmi123/sesZv/3/
This might work:
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.
here is link: http://jsfiddle.net/sesZv/18/
@adahei i want image and text in same div , i want to use only 1 div
Works fine with a bg image: http://codepen.io/Paulie-D/pen/ahpsD
@Paulie_D i need div containig bg image and text . i cant place span inside div
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.
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.
>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.
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".