Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Help with rounded corners/css
Old 07-04-2009, 01:27 PM Help with rounded corners/css
Extreme Talker

Posts: 216
Trades: 0
I added code to my index page and to my css file, but the rounded corner box has issues (see attched image). Can you help me renmedy this?

I added this to my index page:
Code:
<div class="roundedcornr_box_878430">
   <div class="roundedcornr_top_878430"><div></div></div>
      <div class="roundedcornr_content_878430">
         <p>Lorem ipsum dolor sit amet, consectetur 
         adipisicing elit, sed do eiusmod tempor incididunt 
         ut labore et dolore magna aliqua. Ut enim ad minim 
         veniam, quis nostrud exercitation ullamco laboris 
         nisi ut aliquip ex ea commodo consequat. Duis aute 
         irure dolor in reprehenderit in voluptate velit esse 
         cillum dolore eu fugiat nulla pariatur. Excepteur 
         sint occaecat cupidatat non proident, sunt in culpa 
         qui officia deserunt mollit anim id est laborum.</p>
      </div>
   <div class="roundedcornr_bottom_878430"><div></div></div>
</div>
And I added this to my css:

Code:
/* Rounded Corner Containers */
.roundedcornr_box_878430 {
	background-image: url(../images/roundedcornr_878430_tl.png); 
	background-repeat: repeat-x; 
	background-position: top left;
}
.roundedcornr_top_878430 {
	background-image: url(../images/roundedcornr_878430_tr.png); 
	background-repeat: repeat-x; 
	background-position: top right;
	
}
.roundedcornr_bottom_878430 {
	background-image: url(../images/roundedcornr_878430_bl.png); 
	background-repeat: repeat-x; 
	background-position: bottom left;	
}
.roundedcornr_bottom_878430 div {
	background-image: url(../images/roundedcornr_878430_br.png); 
	background-repeat: repeat-x; 
	background-position: bottom right;	
	
	}
.roundedcornr_content_878430 {
	background-image: url(../images/roundedcornr_878430_r.png); 
	background-repeat: repeat-x; 
	background-position: top right;
}

.roundedcornr_top_878430 div,.roundedcornr_top_878430,
.roundedcornr_bottom_878430 div, .roundedcornr_bottom_878430 {
	width: 100%;
	height: 15px;
	font-size: 1px;
}
.roundedcornr_content_878430, .roundedcornr_bottom_878430 {
	margin-top: -19px;
}
.roundedcornr_content_878430 { padding: 0 15px; }
And it looks bad, please see attached image. What do I need to correct? Any help will be appreciated.
Attached Images
File Type: png box.png (5.7 KB, 5 views)
chrisj is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-04-2009, 01:50 PM Re: Help with rounded corners/css
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
I don't think you want the rounded corner graphics set to repeat, you only want them once, so set those to no-repeat.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-05-2009, 12:11 PM Re: Help with rounded corners/css
GeekSpecialties's Avatar
Super Talker

Posts: 132
Name: Leonard
Location: Minnesota, USA
Trades: 0
You might also want something like this to get your text inside the graphic. j(padding or margin depending on your use)
Code:
.roundedcornr_content_878430 p {
    padding: 10px;
GeekSpecialties is offline
Reply With Quote
View Public Profile Visit GeekSpecialties's homepage!
 
Reply     « Reply to Help with rounded corners/css
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29267 seconds with 13 queries