473,809 Members | 2,668 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to not insert a new line after <dt> in a <dl> ?

I think browsers do it pretty much by default. How can you avoid that?

It just doesn't look right/pretty for short definitions and also how
can you not indent the whole <dd> so that in stead of looking like
this:

<code>
_ _ _ term: def def def def def def ...
_ _ _ _ _ _ def def def def def def ...
</code>

it would look like:

<code>
_ _ _ term: def def def def def def ...
_ def def def def def def def def def ...
</code>

That is it would not indent the whole def to the right passed the term

Thanks
otf

Jan 29 '06
13 6849
On Sun, 29 Jan 2006 23:25:09 +0100, Gérard Talbot
<ne***********@ gtalbot.org> wrote:
Gérard Talbot wrote :
dt { display: compact; }
dd { margin-left: 0; }


Even better:

dt {font-weight: bolder; display: run-in;}
dd {margin-bottom: 0;}

http://www.w3.org/TR/CSS21/visuren.html#run-in


Which does indeed work in Opera, but doesn't in Internet Exlorer (if you
care about that), but also doesn't seem to work in Firefox1.5 (which is a
bit more worrying).

Again:
<URL:http://www.pretletters .net/_test/styling_definit ion_lists.html> , this
time the fourth example.
--
______PretLette rs:
| weblog | http://www.pretletters.net/_private/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
Jan 29 '06 #11
I think Yucca's proposal is best and it will be the one I will be
using. Browsers out there are very "free" indeed interpreting something
as simple as a the layout of a list (which IMHO shouldn't be much of a
deal).

From the browsers I have access to right now:
._ Gecko/20050911 Firefox/1.0.6 does NOT
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050911
Firefox/1.0.6 (Debian package 1.0.6-5)
..
._ Konqueror 3.4.1 (Using KDE 3.4.1) takes is just find
._ Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111
Firefox/1.5 takes it OK also
..
I still had a question on how to center, as a group, say, three
pictures that have been laid out floating to the left each. Here is a
link to a demo page:
..
http://www.geocities.com/tekmonk2005...st_test00.html
..
Also Yucca, bro, take it easy. Here, in public on line fora, people's
names are "mingo", "snow_white ", "onetitfemm e" or whatever they feel
like going by. I don't think that it really matters. Thing is that the
immediacy that the Internet gives us is good, I think. I wouldn't know
of any other way to treat you than your screen name and I sincerely
wondered what your qualms where about.
..
otf

Jan 30 '06 #12
onetitfemme wrote:
.
I still had a question on how to center, as a group, say, three
pictures that have been laid out floating to the left each.
.

Then why did you float them left?
You could put the images in a div, make the div just wide enough for the
images, and center the div. No floating involved.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jan 31 '06 #13
You misspelled "salad."

Yucky, http://www.yuckycorpulent.com

Jan 31 '06 #14

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

Similar topics

2
1670
by: Peter Crom | last post by:
Hi everyone, I have lists, encoded as <dl compact>...</dl> which runs perfectly under IE 6.0 (for the time being) but not in NN 7.0, as it was obedient enough to the standards that call this feature 'deprecated'. It is suggested to solve the problem with css But how?
6
3907
by: The Plankmeister | last post by:
Hi.. I'm trying to achieve a newline effect within a <dt> block, but am having problems. Here is the basic code: <dl> <dt> <a href="admin_menu.html" class="small">Click here to modify the
4
7845
by: Andre Majorel | last post by:
I'm trying to make a compact <dl> class à la troff .TP where you have Term Definition of the term. Longer Term Definition of the longer term. i.e. if the <dt> text is shorter than the margin-left, the <dd> is on the same line. Otherwise, the <dd> goes on the next line.
25
5032
by: Shannon Jacobs | last post by:
Maybe there is a simple trick here, and I'm not spotting it... Is there a guru of CSS hanging around here who can help out? The page in question has a multi-column table with a list of links in each column. Because links are added and deleted separately in each column, it would be exceedingly awkward to use a separate table row for each link. Therefore, within each column the links are separated by <br> tags. However, the automatic line...
16
1624
by: Ian Rastall | last post by:
I'm doing a very simple RSS 2.0 feed by hand <http://www.bookstacks.org/rss.xml> and changing the sole <item></item> section for each day. Is this the general way in which RSS feeds are done? I'm intentionally trying to avoid using software to generate / manage the feed. Ian -- http://sundry.ws/
3
3592
by: Andy Dingley | last post by:
Imagine the XHTML "definition list" structure <dl> <dt>A</dt> <dd>a</dd> <dt>B</dt> <dd>b1</dd> <dd>b2</dd>
9
2002
by: David Trimboli | last post by:
In designing some of my pages (see http://www.trimboli.name/rune/goblinmagic.html for an example), I created a lot of markup to mimic the book upon which the pages are based. My thinking at the time was that even if one turned off styles one should see the words "Narration," "Background," or "Closer Inspection" in a boldface font, or at least as distinct from the rest of the paragraph. "It's an indication of what sort of paragraph it is,"...
5
5270
nathj
by: nathj | last post by:
Hi All, I'm working on a new site that has a two column layout underneath a title bar. If you check out: http://www.christianleadership.org.uk/scratch/mainpage.php using IE or Opera you will see what I am after as these browsers work fine. However, in FF the results are slightly different - take a look and you'll see that the <p>, within <div class="mainContent"> has shot way over to the right. I've been working on this for 2days now...
3
2662
by: ddailey | last post by:
The code which follows is something I cobbled together quite hastily to display to students a way of illustrating HTML source code (including CSS and JavaScript) alongside a page as rendered. I've done this a dozen different ways for slightly different purposes and rather can't remember what the various outcomes of my inquiries have been. In the following I use <xmpas a way of displaying source code. It works in IE, Opera, and FF, but I...
0
9603
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
10643
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10378
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10391
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,...
0
10121
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
9200
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...
1
7664
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 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...
0
6881
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();...
1
4333
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 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.