I’m trying to get a diagonal div across some content.
I have some select boxes that I would like to disable, using the disabled property, but I would like to have a div on top with the word 'disabled' going along the fieldset diagonally (like ‘sold’ on real estate for sale signs).
Is there any cross browser way to achieve this effect with css?
I don’t want to use an image to do this
I’d probably just go with an image for simplicity, but if you insist:
See: http://jsfiddle.net/yPRUN/
This is the magical tool used to generate the cross-browser CSS.
You’ll need it if you want to make any changes.
You should of course put the IE CSS inside a new stylesheet and include it inside the conditional comments.
HTML:
CSS: