Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    Providence
    Posts
    137
    Plugin Contributions
    0

    Default CSS rounded corners

    I'm trying to get rounded corners for the top left and top right using the stylesheet. My CSS is:
    Code:
    h3.leftBoxHeading, h3.leftBoxHeading a {
    	font-size: 1em;
    	color: #F0FFFF;
    	background-image: url(../images/cornerTL.gif);
    	background-position: top left;
    	background-repeat: no-repeat;
    }
    
    .leftBoxHeading {
    	margin: 0em;
    	background-color: #ED125A;
    	padding: 0.2em 0em;
    	background-image: url(../images/cornerTR.gif);
    	background-position: top right;
    	background-repeat: no-repeat;
    }
    According to A List Apart this should work. It does for the top left but not top right. If I delete opne corner the other corner will work. What am I doing wrong?

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: CSS rounded corners

    You can only add one background image per class.

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: CSS rounded corners

    Can you add the right corner to the #leftBoxContainer instead?

    There other factors at work here, including the sizes of your images whose interactions can't easily be ascertained without seeing the site.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    Jun 2006
    Location
    Providence
    Posts
    137
    Plugin Contributions
    0

    Default Re: CSS rounded corners

    Quote Originally Posted by kuroi
    Can you add the right corner to the #leftBoxContainer instead?

    There other factors at work here, including the sizes of your images whose interactions can't easily be ascertained without seeing the site.
    That doesn't work either. Do I have to insert a class in a .php file? I can probably surround it with <div></div> tags. Am I right? And if so, do you know which file?
    <div class="left"><h3 class="leftBoxHeading" id="categoriesHeading">Categories</h3></div>

    The images do fit because I saw them each working. Designing the corners was easy.
    Last edited by kjharrison; 8 Sep 2006 at 02:05 AM.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: CSS rounded corners

    I am plagiarizing Kurio here. But this is how he handled this in his template...adding the .centerBoxWrapper. And as his post indicated this should work for left and right side boxes....I think that he was asking that you try the .leftBoxContainer as this already exists.
    Code:
    .centerBoxWrapper {
    	margin: 0;
    	background-image:url(../images/title_cap_left.gif);
    	background-repeat:no-repeat;
    	background-position:top left;
    	}
    
    .centerBoxHeading {
    	margin: 0;
    	height:32px;
    	background-image:url(../images/title_cap_right.gif);
    	background-repeat:no-repeat;
    	background-position:top right;
    	padding: 0.5em 0.2em;
    	}
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: CSS rounded corners

    Kobra is right. There was a typo in my suggestion. I meant to suggest attaching it to
    .leftBoxContainer
    Under normal circumstances that should work.

    There are situations where it might not work, but we'd need to see your site to understand if one of those is present.

    It should not normally be necessary to add additional DIVs to make this work.
    Last edited by kuroi; 8 Sep 2006 at 08:29 AM.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. Rounded corners
    By commdiver in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 6 Jan 2011, 12:45 AM
  2. rounded corners
    By wotnow in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 21 Jul 2010, 07:20 PM
  3. rounded corners
    By wotnow in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Jul 2010, 03:07 PM
  4. Rounded Corners
    By autoace in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Sep 2009, 12:28 AM
  5. Custom Login Page CSS Rounded Corners
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 8 Apr 2009, 01:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg