Click here to Skip to main content
15,891,903 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to use this pic as header to my website but iam facing problem with compatibly with browser its not look like i want in IE while its look okay in chrome for sure i split the picture in to part i got one and herf as imag and the second div i give it as background color

here is how its look like in chrome
http://www.4shared.com/photo/IifrVQyF/chrome.html?[^]

here is how its look like in IE
http://www.4shared.com/photo/dDi_KlKS/IE_online.html?[^]


and here is how i am doing it
XML
<html>
<head>
<title>Untitled Document</title>

<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<style type="text/css">
@import"style.css";
</style>
</head>

<body bgcolor="#CCCCCC">
  <div id="HeaderLeftDiv"></div>
  <div id="HeaderRightDiv">
        <ul>
            <li class="current_page_item"><a href="index.php">Home</a></li>
            <li><a href="#">Photos</a></li>
            <li><a href="RegistrationForm.php">Register</a></li>
            <li><a href="#">About Us</a></li>
            <li><a href="#">Contact Us</a></li>
        </ul>
  </div>


</body>
</html>


here is the css file


CSS
.HeaderLeftDiv
{
    border:"1";
    position:absolute;
    top:12px;
    left:19%;
    width:22%;
    height:13%;
    background:url(Images/Img1.png);
}

.HeaderRightDiv
{
    position:relative;
    top:36px;
    left:40%;
    width: 40%;
    height: 54px;
    margin-right: 100px;
    border:3px;
    background-color:#000;
}
Posted
Updated 18-Oct-11 20:30pm
v4

1 solution

Hi, it seems your Right Side div margin is creating problem...

Please try modifying your CSS as below...

CSS
.HeaderRightDiv
{
    position:relative;
    top:36px;
    left:40%;
    width: 40%;
    height: 54px;
    margin-right: 100px;
    border:3px;
    background-color:#000;
    margin-top: 0;
}

.HeaderRightDiv ul
{
    margin-top: 0;
}
.HeaderRightDiv ul li
{
    margin-top: 0;
}
.HeaderRightDiv a
{
    margin-top: 0;
}



Hope this will help...
 
Share this answer
 
Comments
ghost_j1 19-Oct-11 12:03pm    
did not work... thanks for trying to help me
any ideas ??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900