473,787 Members | 2,931 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can i format ul / li tags in css?

1 New Member
How can i format ul / li tags in css?
I'm not sure if it's possible to even format this. But here goes.
"_" represent empty space .
when i make a list on the web, it looks like this
Expand|Select|Wrap|Line Numbers
  1. -main text (ul)
  2.            - sub text (li)
  3.            - sub text (li)
  4.  
But i would like the sub text to flush closer to the main text above it. Like so:
Expand|Select|Wrap|Line Numbers
  1. -main text
  2.   - sub text
  3.   - sub text
  4.  
Is there anyway of implementing this in css?

I was told by adding would help but it didin't work for me.
Expand|Select|Wrap|Line Numbers
  1. padding-left: 0.5em;
Any advise is appreciated :)
Aug 9 '08 #1
1 4242
acoder
16,027 Recognized Expert Moderator MVP
You also have to take the margin into account. Also make sure you're using a strict doctype.
Aug 10 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1468
by: Oliver Spiesshofer | last post by:
Hi, I am working with a CMS system that defines its own format for tags like h1, h2, body etc. I want to reset those within a certain range and define my own. So how should the CSS central format should look like? The text that I insert will be already inside a body-tag which I cannot manipulate, and which has its own css-file.
3
1440
by: tdeclercq | last post by:
HI, I want to be sure that users receive and can read my mails. How can I send mail in HTML AND text Format in one send ? thx
1
4659
by: Jose Gonzalez | last post by:
How to apply a numeric format to a textbox using xhtml? I know you have to use the "-wap-input-format" style tag in css. I can get this to work in a regular xhtml page, however, I've been unsuccessful in getting it to work in asp.net 1.1 The following code has allowCustomAttributes set and works fine for labels, but not for textboxes. This is because it is building span tags around the control. I need to embed the class tag inside the...
2
2256
by: Robertico | last post by:
Hi, I tried to use the Passthru and System function to resolve some whois information. echo passthru('whois 62.69.168.12') .'<br>'; -or- $whois = system('whois 62.69.168.12', $retval); It works fine, but all the result text is at one line. How can i format this
4
2304
by: clintonG | last post by:
Anybody know how to dynamically write the meta tags using code so they are formatted on a separate line in the HTML source? Preferred or optimal framework classes that may be used in this regard? <meta... /> <meta... /> <meta... /> <%= Clinton Gallagher
1
1613
by: Amit | last post by:
Hi All, I am stuck in a pretty simple problem. I need an XSL to convert an XML with similar format's and some additions, please consider the following example to understand my issue. Input XML
2
361
by: Oriane | last post by:
Hi folks, what makes that the SOAP/Xml binary encoding is smaller than the "text" one ? Is is only because the XML tags are more or less suppressed ? More generally, I don't understand how gzip can reduce text file size since I can't see how a character can be store in less than 1 byte. Or is that a text file in an OS has such a big overhead ?
1
1717
by: ipramod | last post by:
Hi, I have an predefined XML format, lets say: <employee id="1111"> <name></name> <addr></addr> <salary></salary> </employee>
1
1597
by: Chipley | last post by:
Hi, I'm rather new to web development, and I'm trying to convert the following code (one of my first web pages) to a <div> format. In the code below, I use tables as placeholders for images (among other things), I'd like to remove all the table tags and use <div> tags instead, along with .css, in order to promote usability, and start learning how to make web pages the right way. I have a bunch of .css files that are defining the look of...
0
9655
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9964
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6749
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5535
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4069
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 we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.