Hi Newsgroup,
I am working on a website http://www.charter-yachtcharter.com/testsite/
(still in progress).
There are two lists. The first is a simple paragraph (<p>-Tag), the
second an unordered list.
How can I use a Style-Sheet to format the bullets to be aligned like the
text above. The problem is the floating catamaran-image which is
floating left around the first paragraph on this site.
I tried to place the list under the image with some linebreaks <br>.
There it was possible to set the margins of the li-elements.
Is there a better way to position these element on this site?
Thanks, Chris
--
Chris Gurk can be reached at: http://www.gurkcity.de 2 3399
On Tue, 29 Jun 2004 16:49:19 +0200, Chris Gurk <ch*******@gmx. de> wrote: Hi Newsgroup,
I am working on a website http://www.charter-yachtcharter.com/testsite/ (still in progress).
There are two lists. The first is a simple paragraph (<p>-Tag), the second an unordered list. How can I use a Style-Sheet to format the bullets to be aligned like the text above. The problem is the floating catamaran-image which is floating left around the first paragraph on this site. I tried to place the list under the image with some linebreaks <br>. There it was possible to set the margins of the li-elements. Is there a better way to position these element on this site?
Thanks, Chris -- Chris Gurk can be reached at: http://www.gurkcity.de
ul {margin-left: 2em} or whatever works. Different browsers set different
default margins and paddings for ul and li. You ought to try something
like this to override that when CSS is observed:
ul {margin:0; padding:0; margin-left: 2em;}
li {margin:0; padding:0;}
Thank you very much.
I solved the problem with your help:
ul {padding: 0; margin: 0 0 0 210px;}
The 210px is a value which seems to be left-floating image-width (in my
case the width of the image is 170px)plus the margin to the image and
the text-indent plus the padding of the surrounding content-box in which
all paragraphs, images and lists are positioned.
I tried it with smaller values (like 2em, 170px) and there were still
some strange effects on Mozilla Firefox and Internet Explorer, too.
My explanation: The margin of ul is not a distance to the floating
image, it is the distance to the surrounding content box.
Chris
--
Chris Gurk can be reached at: http://www.gurkcity.de This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Michael |
last post by:
This is a two-part question to which I haven't been able to find an answer
anywhere else.
1. Is it possible to format the bullet/number character of the <li>? In my
styles sheet, I have the <li> tag formatted, for example, bold. However,
when it's applied, the number of the <li> is not bold, but the text is. Do I
have to apply the bold to the <ol> instead?
2. When I use <li>example text</li>, and when I insert a <br> after the
</li>,...
|
by: Andrew Thompson |
last post by:
I am developing a Periodic Table of the Elements
as<DIV>s ..(chuckle - just kidding!) a <TABLE>
at http://www.physci.org/test/chem/,
or rather, the table itself is..
http://www.physci.org/test/chem/ptoe.html
It contains valid HTML and CSS
(checked 'moments' ago).
Am testing in IE 6 on XP. My questions..
|
by: A.Translator |
last post by:
I have an unordered list as menu and want some space at the bottom,
underneath the last <li>.
I have tried:
setting bottom-margin to ul
setting bottom-margin to containing <div>
setting padding to ul and <div>
and all combinations of the above I could think of.
None seems to work.
|
by: NWhite |
last post by:
Hi all,
I'm trying to indent <li> items using:
li {
margin: 0 0 0 50px;}
So I expect something like the following to indent 50 pixels from the left
margin:
|
by: jmm-list-gn |
last post by:
Hello,
<http://www.asaom.edu>
There are some curious spacing issues with the top bar (gray) and the
main navigation bar.
The most significant is how the nav bar looks in Opera v6 (win2k): the
text portion is has extra space at the top that I cannot remove. As a
result the text portion is pushed below the background bar by a few
pixels. This does not occur in Mozilla/Firefox, or IE6. (I have ordered
Opera v7.) Is this a known issue?
The...
| |
by: Mark |
last post by:
Hopefully I 'm missing something silly, but I can't find an easy way to loop
all list items in a simple <ol>. I was hoping a for loop as shown below
would be enough, however clicking "alert all" in the following example gives
me all but the first <li> element. The alertfirst() function finds the first
<li> with no problem. There are multiple lists on the page, so
getElementsByTagName('li') is probably not the most elegant solution. Btw.
my...
|
by: abs |
last post by:
Anybody has an idea how to get the <ul> element which is not nested in <li>
element ? In other words I have several lists like this:
<ul id="1">
<li>Aaaaaaaa</li>
<li>Bbbbbbbb</li>
<li>Cccccccc
<ul>
<li>111111</li>
<li>222222</li>
|
by: windandwaves |
last post by:
Hi Folk
Just a bit of help here for newbies who want their menus to look nicer.
I am sure that many of you make menus like this
<ul id="menu">
<li><a href="page1.html">option 1</a></li>
<li><a href="page2.html">option 2</a></li>
<li><a href="page3.html">option 3</a></li>
|
by: Eric Lindsay |
last post by:
I have a web page at http://www.architectqueensland.com/index.html
styled with http://www.architectqueensland.com/architect.css The site
is valid HTML 4.01 Strict. The CSS is valid 2.1 except for use of the
CSS3 text-shadow property.
The side navigation on the pages displays basically as expected in
Firefox, Opera and Safari. According to Browsershots, IE7 is also OK for
navigation. The desired appearance is as Safari does it (same...
|
by: patrick j |
last post by:
Hi
I'm wondering about lists with nested lists as one does on a Saturday
afternoon.
Anyway below is an example of a list with a nested list which the iCab
browser's very useful HTML verification ability will not like:
<ul>
<li><a href="#">link</a></li>
|
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...
| |
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,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
| |
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
|
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...
| |