Jump to content
Sign in to follow this  
touchtalk

Borderradius for header (not image)

Recommended Posts

touchtalk

We've already got great help from this forum. Now we want to implement some border-radius (which partly worked already) and some dropshadow. What we've added as custom code is this: #branding { background:#AFAFAF url('oursite/header-bg-grau1.jpg'); -moz-border-radius-topleft: 8px; -moz-border-radius-topright: 8px; border-top-left-radius: 8px; border-top-right-radius: 8px; } http://www.touchtalk.dreamhosters.com/tttest But: The header itself appears in the corners and I don't know how to add a border radius also to the box? I've tried #page-canvas etc. but nothing worked...

Share this post


Link to post
Share on other sites
Kate

Try this:

#page-canvas {
	-webkit-box-shadow: 0 0 8px 8px rgba(0,0,0,.2);
	-moz-box-shadow: 0 0 8px 8px rgba(0,0,0,.2);
	box-shadow: 0 0 8px 8px rgba(0,0,0,.2);
	margin-top:25px !important;}
	
	#branding{-moz-border-radius-topleft: 8px;
	-moz-border-radius-topright: 8px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;margin-top:-24px;}
	#header{padding-top:16px !important;}
	

You may then want to add the dropshadow to the top of #branding instead of the top of #page-canvas, but that's up to you :)

Share this post


Link to post
Share on other sites
touchtalk

You made my day Kate!! THANKS!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×