Jump to content


Photo
- - - - -

CSS Rounded borders on sections

css

Best Answer James B , 01 March 2013 - 02:55 AM

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.

Go to the full post


  • Please log in to reply
11 replies to this topic

#1 mikeeg8

mikeeg8

    Member

  • Members
  • 14 posts

Posted 21 January 2013 - 11:16 AM

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



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 16897 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 21 January 2013 - 11:25 AM

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 - 

Please Login or Register to see this Hidden Content



#3 cloudstem

cloudstem

    Member

  • Members
  • 11 posts
  • Framework Version:2.4
  • Country: Country Flag

Posted 24 February 2013 - 06:27 PM

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



#4 batman

batman

    Bat Learning

  • Members

  • 2159 posts
  • LocationBuenos Aires, Argentina
  • Framework Version:DMS
  • Country: Country Flag

Posted 25 February 2013 - 12:11 AM

Hi

This is only an example, you can try

 

Please Login or Register to see this Hidden Content

You have more information here

Please Login or Register to see this Hidden Content



#5 Danny

Danny

    Is Awesome!

  • Moderators
  • 16897 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 25 February 2013 - 09:16 AM

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 - 

Please Login or Register to see this Hidden Content



#6 cloudstem

cloudstem

    Member

  • Members
  • 11 posts
  • Framework Version:2.4
  • Country: Country Flag

Posted 28 February 2013 - 04:23 PM

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; 


#7 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 28 February 2013 - 06:44 PM

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



#8 cloudstem

cloudstem

    Member

  • Members
  • 11 posts
  • Framework Version:2.4
  • Country: Country Flag

Posted 28 February 2013 - 07:09 PM

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???



#9 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 01 March 2013 - 01:14 AM

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 -

Please Login or Register to see this Hidden Content

 

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

 

 

Please Login or Register to see this Hidden Content



#10 cloudstem

cloudstem

    Member

  • Members
  • 11 posts
  • Framework Version:2.4
  • Country: Country Flag

Posted 01 March 2013 - 02:13 AM

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



#11 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 01 March 2013 - 02:55 AM   Best Answer

Hi Cloudstem

 

Take a look at this screenshot -

Please Login or Register to see this Hidden Content

 

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.



#12 cloudstem

cloudstem

    Member

  • Members
  • 11 posts
  • Framework Version:2.4
  • Country: Country Flag

Posted 04 March 2013 - 10:17 PM

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







Also tagged with one or more of these keywords: css