الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

css help please

مغلق
بدأه mlotfi في 30 مايو 2006 · 0 رد · 358 مشاهدة · في منتدى تصميم صفحات الويب
مشاركة: واتساب X فيسبوك تيليجرام
#1

assalam alikoum

I am trying to use this code to have a toolbar that has tabs, when I put 8 tabs they overlaped, how to change this css so all the tabs stay in one line :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">

<head>

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">

<title>%%% Proposal Dev %%%</title>

<link rel="SHORTCUT ICON" href="/images/listamatic.ico">

<style type="text/css">

#navcontainer

{

background: #f0d7d7;

margin: 0 auto;

padding: 0.6em 0 0 0;

font-family: georgia, serif;

text-transform: lowercase;

}

/* to stretch the container div to contain floated list */

#navcontainer:after

{

content: ".";

display: block;

line-height: 1px;

font-size: 1px;

clear: both;

}

ul#navlist

{

list-style: none;

padding: 0;

margin: 0 auto;

width: 80%;

font-size: 0.8em;

}

ul#navlist li

{

display: block;

float: left;

width: 15%;

margin: 0;

padding: 0;

}

ul#navlist li a

{

display: block;

width: 100%;

padding: 0.2em;

border-width: 1px;

border-color: #ffe #aaab9c #ccc #fff;

border-style: solid;

color: #777;

text-decoration: none;

background: #f7f2ea;

}

#navcontainer>ul#navlist li a { width: auto; }

ul#navlist li#active a

{

background: #f0e7d7;

color: #800000;

}

ul#navlist li a:hover, ul#navlist li#active a:hover

{

color: #800000;

background: transparent;

border-color: #aaab9c #fff #fff #ccc;

}

</style>

</head>

<body>

<div id="navcontainer">

<ul id="navlist">

<li id="active"><a href="index.html" id="current">Proposal</a></li>

<li><a href="index2.html">Organization</a></li>

<li><a href="#">Mailing Info</a></li>

<li><a href="#">Invistigator</a></li>

<li><a href="#">Key Person</a></li>

<li><a href="#">Special Review</a></li>

<li><a href="#">Science Code</a></li>

<li><a href="#">Other</a></li>

</ul>

</div>

Page one 111111111111111111111111111111111111111111111111

</body>

</html>

Thank you.

هذا الموضوع مغلق.

مواضيع مشابهة