
February 5th, 2013, 03:13 PM
|
|
Registered User
|
|
Join Date: Jan 2013
Posts: 7
Time spent in forums: 4 h 4 m 58 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by sw0800 So I'm thinking of doing a header like the one seen in this site.
http://www.i-am-tiago.com
As you can see the header (part where he puts all his links to contact him and such) is kinda see though/transparent. Can be seen as you scroll down the page you can still see a little bit of the other parts of the page underneath the header. I've been looking at the code and nothing in the CSS, to me at least suggests how this is achieved.
I'm just not seeing it. Does any one know how this is done? Is it in CSS or via his java script?
Code:
/* -------- Header -------- */
DIV.header{width:100%;height:104px;text-align:center;background:transparent url('../images/headerbg.png') repeat-x; position:fixed;z-index:2;}
DIV.head{width:975px;height:107px;margin:0 auto;}
DIV.logo{float:left;}
DIV.logo A.logo IMG{margin:24px 0 0 39px;border:none;}
DIV.nav{margin:0;float:right;}
DIV.nav UL.navbar{margin:0;padding:0;}
DIV.nav UL.navbar LI{list-style:none;width:145px;float:left;background:transparent url('../images/navlibg.png') repeat-y left;}
DIV.nav UL.navbar LI A{text-decoration:none;font:normal 24px 'YanoneKaffeesatzRegular',arial,sans-serif;color:#ffffff;text-transform:uppercase;padding:36px 0 36px 0;margin:0 0 0 2px;display:block;}
DIV.nav UL.navbar LI A:hover{background-color:#e4563a;}
Thanks! |
The transparency is in the .png he's using for the background of the header class. "../images/headerbg.png".
If you make a .png in photoshop or whatever with 50% opacity, it can display that transparency in a web browser so you get that effect.
|