Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-08-2012, 12:05 PM   PM User | #1
prateek88
New to the CF scene

 
Join Date: Aug 2012
Location: INDIA
Posts: 9
Thanks: 8
Thanked 0 Times in 0 Posts
prateek88 is an unknown quantity at this point
adding padding removes rounded corners

I am having a content area with a background image, in that i added border-radius:20px and then tried to pad-left about 25 px but it romoves the rounded corners. What can i do?

Code:
#content{
height: 650px;
margin: auto auto;
width: 957px;
background: url(img.png) top center no-repeat;
color:#fcfcfc;
border-radius: 20px;
}
div#content{
padding-top: 20px;
padding-left: 20px;

}
prateek88 is offline   Reply With Quote
Old 10-08-2012, 12:28 PM   PM User | #2
shyagrawal
New Coder

 
Join Date: Sep 2012
Posts: 22
Thanks: 0
Thanked 6 Times in 6 Posts
shyagrawal is an unknown quantity at this point
can you please paste html code also?
shyagrawal is offline   Reply With Quote
Users who have thanked shyagrawal for this post:
prateek88 (10-08-2012)
Old 10-08-2012, 12:33 PM   PM User | #3
prateek88
New to the CF scene

 
Join Date: Aug 2012
Location: INDIA
Posts: 9
Thanks: 8
Thanked 0 Times in 0 Posts
prateek88 is an unknown quantity at this point
Sure, here it is


Code:
<!DOCTYPE html>
<html lang="en" >
    <head>
        <meta charset="utf-8" />
        <title>Welcome</title>
        <link href="styles/layout.css" rel="stylesheet" type="text/css" />
        <link href="styles/menu.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <header>
            <h2>XpertCareers</h2>
            
        </header>
       <div class="container">

            <ul id="nav">
                <li><a href="#">Home</a></li>
                <li><a class="hsubs" href="#">Menu 1</a>
                    <ul class="subs">
                        <li><a href="#">Submenu 1</a></li>
                        <li><a href="#">Submenu 2</a></li>
                        <li><a href="#">Submenu 3</a></li>
                        <li><a href="#">Submenu 4</a></li>
                        <li><a href="#">Submenu 5</a></li>
                    </ul>
                </li>
                <li><a class="hsubs" href="#">Menu 2</a>
                    <ul class="subs">
                        <li><a href="#">Submenu 2-1</a></li>
                        <li><a href="#">Submenu 2-2</a></li>
                        <li><a href="#">Submenu 2-3</a></li>
                        <li><a href="#">Submenu 2-4</a></li>
                        <li><a href="#">Submenu 2-5</a></li>
                        <li><a href="#">Submenu 2-6</a></li>
                        <li><a href="#">Submenu 2-7</a></li>
                        <li><a href="#">Submenu 2-8</a></li>
                    </ul>
                </li>
                <li><a class="hsubs" href="#">Menu 3</a>
                    <ul class="subs">
                        <li><a href="#">Submenu 3-1</a></li>
                        <li><a href="#">Submenu 3-2</a></li>
                        <li><a href="#">Submenu 3-3</a></li>
                        <li><a href="#">Submenu 3-4</a></li>
                        <li><a href="#">Submenu 3-5</a></li>
                    </ul>
                </li>
                <li><a href="#">Menu 4</a></li>
                <li><a href="#">Menu 5</a></li>
                <li><a href="#">Menu 6</a></li>
                <li><a href="Login.html">Login</a></li>
                <div id="lunar"></div>
            </ul>
			</br>
			
        </div>
		
		<div id="content">
			
			hello world hello worldhello worldhello worldhello </br>
			hello world hello worldhello worldhello worldhello </br>
			hello world hello worldhello worldhello worldhello </br>
			hello world hello worldhello worldhello worldhello </br>
			
		</div>
		
		
		
		<footer>
	        <h2>&copy; 2012 <i>TechGeeks<i> |</h2> <a class="tzine">Design by TechGeeks Team
        </footer>
    </body>
</html>
prateek88 is offline   Reply With Quote
Old 10-08-2012, 12:35 PM   PM User | #4
shyagrawal
New Coder

 
Join Date: Sep 2012
Posts: 22
Thanks: 0
Thanked 6 Times in 6 Posts
shyagrawal is an unknown quantity at this point
Thanks. Please attach image file also.
shyagrawal is offline   Reply With Quote
Old 10-08-2012, 07:32 PM   PM User | #5
prateek88
New to the CF scene

 
Join Date: Aug 2012
Location: INDIA
Posts: 9
Thanks: 8
Thanked 0 Times in 0 Posts
prateek88 is an unknown quantity at this point
this worked for me

Code:
div#content #maincontent{
padding-top: 20px;
padding-left: 20px;

}
added a div tag with maincontent id inside body but still the bottom curves are not visible

prateek88 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 01:00 AM.


Advertisement
Log in to turn off these ads.