473,471 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

controll lengt of block element

Hi,
Is it possible to optimize that nice navigation-formating that the length
of each block element is defined in the following way:
fixed space ( here realized with text-indent: 20px;) + length of the text +
another fixed space on the right side which I dont´know how to define.

thanks for inspiration,
here is the code
rolf

html:
<br><ul id="mainlevel-nav"><li><a
href="index.php?option=com_weblinks&amp;Itemid=22" class="mainlevel-nav"
Links</a></li><li><a href="index.php?option=com_contact&amp;Itemid=3"

class="mainlevel-nav" >Contact Us for more info and be
trained</a></li><li><a
href="index.php?option=com_content&amp;task=sectio n&amp;id=1&amp;Itemid=2"
class="mainlevel-nav" >News</a></li><li><a href="index.php"
class="mainlevel-nav" >Home</a></li></ul><br>

css:
body {
margin: 0px;

}
#mainlevel-nav {
margin: 0; padding: 0;
font-family : Verdana, Arial, Helvetica, sans-serif;
font-weight : bold;
}
#mainlevel-nav li {
background-image: none;
padding-left: 0px;
list-style:none; float: left;
margin: 0; width: 90px;
font-size: 10px;
line-height: 15px;
white-space: nowrap;
text-indent: 20px;

}
#mainlevel-nav a {
display: block; float: left; text-decoration: none; border: 1px solid;
border-color: #fff #cc3300 #cc3300 #fff;
background: #ff9933 url(vmenu_bgr.png) 200px no-repeat;
color: white;
}
#mainlevel-nav a {
float: none;
}
#mainlevel-nav a:hover {
background: #ff6600 url(vmenu_bgr.png) 2px no-repeat;
}

Nov 23 '05 #1
0 1144

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ProgrammierMan | last post by:
Hi folks, I don't know what the block attribute means. The final attribute looks like to be simple: I can prevent derivations. Did I write final="restriction" and I restrict it in another...
4
by: Christopher | last post by:
This should be a quick one. URL: http://cfa-www.harvard.edu/~cpilman/Stuff/flush.html Code: ============================= <!DOCTYPE HTML Public "-//W3C//DTD HTML 4.01//EN">...
7
by: Zhang Weiwu | last post by:
Hello. This is problem puzzled me a long time. I wish to organize some block elements and let them flow one after each other like text. Think about a album, I wish the album have 12 thumbnails,...
1
by: Michael Albanese | last post by:
I am developing an application to handle my compay's OSHA reporting requirements. Some of the input criteria are technical and narowly defined, so I was trying to prvide what i call "Context...
5
by: Stampede | last post by:
I browsed the web and found a GUI Controll on a ScreenShot. As the software which uses this controll is written as an Add-In for MS Outlook I think this Controll has to be with the Visual Studio. ...
12
by: Eric Lindsay | last post by:
I'm trying to learn how to read a DTD I wanted to use, http://www.w3.org/TR/html4/strict.dtd to ensure I was treating each element correctly in terms of being block, inline, or flow (either). ...
6
by: ste.paoletti | last post by:
hi, I have read that browsers support block element inside inline element but the css is not valid. Someone can tell me more about? What do you think? Thanks.
1
by: tankbattle | last post by:
That is, what's the difference between <complexType name="Address" final="restriction"> <sequence> <element name="name" type="string"/> <element name="street" type="string"/> <element...
5
by: SuneR | last post by:
Hi, I am having problems figuring out how to make Firefox behave, and output the HTML I want it to output. The thing I want done is actually quite simple. I have a <labeltag, and inside it, I...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.