Archived

This topic is now archived and is closed to further replies.

  • 0

CSS Rounded borders on sections


Question

Posted · Report post

Hi,

 

I'd like to put some CSS borders (with rounded corners) on all the sections of my site.

 

So - for example - on the sidebar, on the main content area, etc.

 

Is there a way to do this easily please?

 

Thank you

 

Michael

Share this post


Link to post
Share on other sites

11 answers to this question

Posted · Report post

Hi Cloudstem

 

Take a look at this screenshot - http://screencast.com/t/rR5IcyVDF4

 

Top screen show the rounded corners, then in the blue line on the bottom left is the area I'm looking into through the inspector. When i click on that div 'content' it loads the css on the right hand window. The arrow in the right hand window points to the classes those rounded corners are coming from. So in that example you can see .canvas and .page-canvas are the selectors you can use.

Share this post


Link to post
Share on other sites

Posted · Report post

Thank you so much!  I finally figured it out...much appreciated Sir!!!

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks Danny!  I'm now trying to do the entire page using the following code but it only rounds the bottom.  I've also tried your site (thank you) but am not sure which class to target.  Can you help?

 

 

div
{
border:2px none;
border-radius:25px;
-moz-border-radius:25px; 

Share this post


Link to post
Share on other sites

Posted · Report post

Is this the entire code you have? It's missing a curly bracket at the end: }

Share this post


Link to post
Share on other sites

Posted · Report post

Hello, I'm trying to accomplish the same thing but am stuck.  I've add the CSS to my custom CSS and played with it for hours trying to get the right element rounded.  I would like header corners rounded.  My site is dynacomusa.net

Share this post


Link to post
Share on other sites

Posted · Report post

Yes, okay thanks.  I've put that in and it still only rounds bottom of page.  Not sure what to target for the top, site-canvas, hearder???

Share this post


Link to post
Share on other sites

Posted · Report post

Hi

This is only an example, you can try

 

.section-business-branding .branding_wrap  {
     box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.4);
    border-radius: 5px 5px 5px 5px;
    padding: 5px;
}

You have more information here

http://www.w3schools.com/css/css_border.asp

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there,

 

For each section you want to apply the rounded corners too you'll have to find a class/id for each. For example #header would be one element which you could select at the top of the page, when you look in firebug and you're inspecting each element roll over the html field in the left across the name of each div. When you do this you'll see in the live site window blue borders appearing around the relevant element you're looking at in the code. That way you can stop when the border is around the right element, then look into the css which appears in the left hand window at the bottom, make the required changes and then copy/paste back into Pagelines.

 

This link will show you more on the border radius property - http://www.w3schools.com/cssref/css3_pr_border-radius.asp

 

if you want the css to apply to all four corners using the same radius amount, simply write in one figure, like the below

 

 

border-radius:25px;
 

Share this post


Link to post
Share on other sites

Posted · Report post

Hi James, it tried this but it does not seem to work.  What would my target be?  site-canvas?

Share this post


Link to post
Share on other sites

Posted · Report post

If you have targeted the correct class and the round corners are not displaying, then you most likely haven't added the correct CSS.

Use this site to generate the correct code - http://border-radius.com/

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Michael,

 

Yes this can be done, all you need to do is use either Firebug or your browsers built-in web developer tools and inspect the section you would like to add the round corners to. Once you have found the correct class, create your custom CSS with the round corners and add your CSS to your custom CSS.

 

See our Custom CSS documentation for assistance - http://support.pagelines.me/docs/customization/custom-css/

Share this post


Link to post
Share on other sites