- This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
Viewing 11 posts - 1 through 11 (of 11 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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.
Hi Simmi
Just see on code jsfiddle:http://jsfiddle.net/simmi_simmi123/sesZv/3/
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.
@simmi
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
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.