Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello!

I have a problem related to the <doctype>. The problem is that I have a navigation bar, here's its CSS:
CSS
#nav {
margin:0;
padding:0 7;
background:#FEFFFF url(tti.png) top left no-repeat;
float:left;
width:1000;
border:2px solid #42432d;
border-width:0px 0;
}

#nav li {
display:inline;
padding:0;
margin:0;
}

#nav a:link,
#nav a:visited {
color:#000;
background:#64E3F7 url(lb.png);
padding:11px 20px 12px 20px;
float:left;
width:auto;
border-right:0px solid #FEFFFF;
border-image:url("lb.png");
text-decoration:none;
font:bold 1em/1em Calibri, Trebuchet MS, sans-serif;
}


#nav li:first-child a {
background:url(l1.png);
border-top-left-radius:25px;
border-bottom-left-radius:25px;

}

#nav a:hover,
#nav a:focus {
background:#BDF4FC url(nva.png);
}


#nav a:active {
background:#004CFF;
color:#fff;
}
</style>


When I specify the DOCTYPE, the navigation bar does not works properly. The problem that occurs with it is that the bar's width is only till its last
  • or menu. It's full background is not displayed. When I remove the DOCTYPE specification, its works perfect. But the problem with removing the DOCTYPE is that if I remove it, some elements of the page wont work in IE. Those elements include a slider and a news scroller. You can have a look at the page and you'll understand everything. The URL:http://mypmail.x10.bz/012/sample/[^]

    The radius property of the search button is also not working.
    Any ideas?

    Thanks
Posted
Updated 30-Mar-11 7:45am
v3
Comments
Sergey Alexandrovich Kryukov 30-Mar-11 12:09pm    
Show you DOCTYPE. It is not really related to CSS.
Also, make some ***MINIMAL*** samples with working and non-working elements with explanation what's wrong.
--SA
FahdSanaullah 30-Mar-11 13:46pm    
Thanks, I have just updated it. Please see and check if you can help me out.

Thanks
Sergey Alexandrovich Kryukov 30-Mar-11 16:59pm    
Still not clear. Where is the DOCTYPE. I asked for simplest possible sample of HTML, not that rich site you reference. Your referenced page is with DOCTYPE, and it works OK (I use SeaMonkey). By the way, aspect ratio of pictures in scrolling area looks wrong (too elongated horizontally), but it could be just impression (check up, anyway).
Did you try different browsers? I don't have to do it, but you do.
The code sample could be: 1) working, 2) not working this and that.
Is it possible to narrow it down to minimal sample still manifesting the problem?
--SA
FahdSanaullah 31-Mar-11 2:55am    
I used Seamonkey as well. Its not working this browser as well. I have made a sample for you. This might make it very clear for you to understand. The URL : "http://mypmail.x10.bz/pics.html". Please see this and you will understand the problem.
Any help you can do?

Thanks

1 solution

Please put all of your page content inside the form tag.try putting your main div "cse-branding-bottom" within form tag.
According to your provide link the page is not well structured.
Please navigate the following links for better understanding.
ASP.NET Web Page Code Model
ASP.NET/Examining The Page Structure

If i misunderstand your question, please feel free to correct me.
I hope the above information will be helpful. If you have more concerns, please let me know.
 
Share this answer
 
Comments
FahdSanaullah 1-Apr-11 1:45am    
I have made a sample for you. This might make it very clear for you to understand. The URL : "http://mypmail.x10.bz/pics.html". Please see this and you will understand the problem.
Any help you can do?

Thanks

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