The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> cant get my div back to where it was, cant get my div back to where it was
jim3210
post Dec 24 2008, 01:06 PM
Post #1





Group: Members
Posts: 2
Joined: 24-December 08
Member No.: 7,401



im making a website, it has a #logo and #navigation which is some tabs centered under the #logo. it was all working fine untill i put in the doctype declaration xhtml1.1. this is my code:

<div id="navigation">
<ul>
<li><a href="index.html"><span>Home</span></a></li>
<li><a href="contact.html"><span>Contact</span></a></li>
<li><a href="gallery.html"><span>Gallery</span></a></li>
<li><a href="team.html"><span>Team Members</span></a></li>
</ul>
</div>


#navigation a
{
border-top: 5px solid black;
color: #000;
background: #ffa20c url(images/lefttab.gif) left top no-repeat;
text-decoration: none;
padding-left: 10px
}

#navigation a span
{
background: url(images/righttab.gif) right top no-repeat;
padding-right: 10px
}

#navigation a, #navigation a span
{
display: block;
float: left;
}

/* Hide from IE5-Mac \*/
#navigation a, #navigation a span
{
float: none
}
/* End hide */

#navigation a:hover {
color: #fff;
background: #781351 url(images/lefttabhover.gif) left top no-repeat;
padding-left: 10px
}

#navigation a:hover span
{
background: url(images/righttabhover.gif) right top no-repeat;
padding-right: 10px
}

#navigation ul
{
text-align: center;
list-style-type: none;
padding: 0px;
margin: 0 0 0px 36%;
}

#navigation li
{
float: left;
margin: 0px;
display:inline;
}


anyonr know whats wrong? smile.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 24 2008, 01:24 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Please post the URL to the page.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jim3210
post Dec 24 2008, 01:40 PM
Post #3





Group: Members
Posts: 2
Joined: 24-December 08
Member No.: 7,401



not got a url sorry, its for a project you see smile.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Dec 24 2008, 02:49 PM
Post #4


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



Apparently your layout relies upon browsers' quirks modes. See also Activating Browser Modes with Doctype.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 10:10 PM