HighDots Forums  

Diagonal Overlay with Text (DIV/CSS)

alt.html.dhtml alt.html.dhtml


Discuss Diagonal Overlay with Text (DIV/CSS) in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bottarelli@gmail.com
 
Posts: n/a

Default Diagonal Overlay with Text (DIV/CSS) - 01-17-2006 , 12:49 AM






Let's say I have a div of a fixed width and a border, making it appear
as a simple square. I would like to create an effect where I overlay a
diagonal red band (width about 80) attaching one edge of the square to
another edge (say the left edge to the top edge). I would like to be
able to write text along this diagonal axis on the red band, and have
it somewhat opaque so I can view a bit of what's behind it.

Can this be done with pure CSS? Or would I need to create an image and
overlay it? If you have a CSS solution for this, or know of a site that
does it or has an example, please share. Thanks!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.