Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] Putting radius on corners of Header Image (http://forum.bytesforall.com/showthread.php?t=5654)

nwheal Feb 1, 2010 04:53 PM

[SOLVED] Putting radius on corners of Header Image
 
Hi

Very new to the theme but think it is great.

I was wondering if it possible to put a radius on the corners of the header image in some way that does not mean me re-editing all header images in Photoshop.

Can this be done in one of the style sheets.

I do not want to put a border round the images just a radius of 10 or 20 pixels.

Regards

Nigel

juggledad Feb 1, 2010 05:03 PM

This will do it for the top left and right corners. add it to ATO->Add HTML/CSS Inserts->CSS Inserts
HTML Code:

/* ================================================ */
/* Replacement header-image-container to rounded the top corners of the image */
/* ================================================ */
.header-image-container {
position: relative;
margin: 0;
padding: 0;
-webkit-border-top-left-radius: 20px;
-webkit-border-top-right-radius: 20px;
-moz-border-radius-topright: 20px;
-moz-border-radius-topleft: 20px;
}
/* ======================= */
/* end Replacement Header Image Container */
/* ======================= */


nwheal Feb 1, 2010 05:09 PM

Quote:

Originally Posted by juggledad (Post 24474)
This will do it for the top left and right corners. add it to ATO->Add HTML/CSS Inserts->CSS Inserts
HTML Code:

/* ================================================ */
/* Replacement header-image-container to rounded the top corners of the image */
/* ================================================ */
.header-image-container {
position: relative;
margin: 0;
padding: 0;
-webkit-border-top-left-radius: 20px;
-webkit-border-top-right-radius: 20px;
-moz-border-radius-topright: 20px;
-moz-border-radius-topleft: 20px;
}
/* ======================= */
/* end Replacement Header Image Container */
/* ======================= */


Juggledad

Many thanks for the information, I have just inserted that into the location you mentioned and instead of using the top left and right commands I tried the -webkit-border-radius: 10px; and it seems to be working fine.

Is there any reason not to use the -webkit-border-radius: 10px;....

regards

Nigel

juggledad Feb 1, 2010 05:37 PM

No you can use that, The example I grabed was from a site where I wanted the top corners rounded and the bottom squared. Note this won't work in IE since it doesn't support it. and you need the '-moz...' for firefox

nwheal Feb 2, 2010 04:19 AM

Juggledad

I was testing the site about an hour after feeling really please with getting it to work.

During that time I decided to open the site with 3 other browser..... once I did that I returned to your post and used your method.



Nigel


All times are GMT -6. The time now is 12:30 PM.

Powered by vBulletin® Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.