While I'm no css guru by any stretch, I thought I knew more than this,
guess not.
I'm trying to come up with a style for a few lines of text that are
secondary to the text above them, so I want them to be indented about
9px.
..index_link_in dent a {
font-size: 11px;
text-decoration: none;
margin-left: 9px;
}
Now these lines of text are pretty long, so they wrap down to two,
sometimes three, lines.
My problem is this, the lines that wrap do not indent. Only the first
line indents. I need the whole thing to indent.
Here is the site under construction: http://clgp.aem.cornell.edu/
Style sheet http://clgp.aem.cornell.edu/clgp_styles.css
The text I'm talking about is in the first column titled "Conference s,
Events, Calendars" The indented text is under "Calendar of Partners."
On large monitors, the text may not be wrapped, but if you shorten the
width, you'll see what I mean.
????
Thanks
Steve 4 1466
Steve K wrote: While I'm no css guru by any stretch, I thought I knew more than this, guess not.
I'm trying to come up with a style for a few lines of text that are secondary to the text above them, so I want them to be indented about 9px.
.index_link_ind ent a { font-size: 11px; text-decoration: none; margin-left: 9px; }
Now these lines of text are pretty long, so they wrap down to two, sometimes three, lines.
My problem is this, the lines that wrap do not indent. Only the first line indents. I need the whole thing to indent.
Here is the site under construction:
http://clgp.aem.cornell.edu/
Style sheet
http://clgp.aem.cornell.edu/clgp_styles.css
The text I'm talking about is in the first column titled "Conference s, Events, Calendars" The indented text is under "Calendar of Partners."
On large monitors, the text may not be wrapped, but if you shorten the width, you'll see what I mean.
????
The easy answer might be 'use padding on the <p> element instead of
margin on the <a> element'.
But why don't you just use a list? A list is semantically the best way
to do this, and it gives you the indenting naturally without you doing
anything. (although you might wanna set it to get the same amount of
indenting in different browsers)
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Steve K <sm***@cornell. edu> wrote: I'm trying to come up with a style for a few lines of text that are secondary to the text above them, so I want them to be indented about 9px.
.index_link_ind ent a { font-size: 11px;
It isn't a good idea to specify font sizes in px (or pt) units. See http://css.nu/faq/ciwas-aFAQ.html#QA02
text-decoration: none; margin-left: 9px; }
Now these lines of text are pretty long, so they wrap down to two, sometimes three, lines.
My problem is this, the lines that wrap do not indent. Only the first line indents. I need the whole thing to indent.
Here is the site under construction:
http://clgp.aem.cornell.edu/
Style sheet
http://clgp.aem.cornell.edu/clgp_styles.css
You've specified margin-left for the A element, and that's what you've got.
From your description, it sounds like you want padding-left on the P
element that contains the A element.
But from looking at the document, it seems that it would be more
appropriate to mark up the links as a list.
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/
"FAILURE IS NOT AN OPTION. It comes bundled with the software."
Steve K wrote: While I'm no css guru by any stretch, I thought I knew more than this, guess not.
I'm trying to come up with a style for a few lines of text that are secondary to the text above them, so I want them to be indented about 9px.
.index_link_ind ent a { font-size: 11px; text-decoration: none; margin-left: 9px; }
sigh. i know that this is OT, but: I hope you realize that specifying
fonts and margin sizes in absolute units, like pixels, can create
accessibility problems.
On Wed, 16 Mar 2005, C A Upsdell wrote: sigh. i know that this is OT,
By no means! It may not be what the O.P wants to hear, but it's
absolutely key and on-topic in any discussion about authoring for the
WWW, IMNSHO.
but: I hope you realize that specifying fonts and margin sizes in absolute units, like pixels, can create accessibility problems.
Fortunately, any decent browser has a defence mechanism against such
problems. But that then means that the author is relying on the
reader overriding what the author asked for. We hope (though such
hopes tend to be short-lived in the case of pixel-fixated authors)
that the design won't fall into a scrappy heap when the author's font
size specification is overridden.
Yes, you're right, it would be much nicer if the author would ask for
what the reader wants, rather than relying on the reader having to
contradict what the author specified. The group's contributor S.Poley
has some excellent articles on font sizing and related topics, by the
way, I regularly commend them to other web authors around here: http://www.xs4all.nl/~sbpoley/webmatters/
Oh yes, and to the Original Poster (repeating the standard advice of
comp.lang.perl. misc): "Please put the subject of your posting in the
Subject of your posting". This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Lazareth S. Link |
last post by:
Hiya to whoever might stumble across this.
I've recently taken up learning how to script/program in python.
I've made my first program, a simple fahrenheit-celsius converter,
both ways.
For some reason I fail to comprehend, the program writes a line of
"None" when rerun in a while loop.
Here is the code:
---START---
|
by: Mark Thomas |
last post by:
Hi
I do not understand why the following does not compile under Visual C++
7.1. It is just a simple "Hello, World" program.
// Hello World Application. Why does this fail?
#include <iostream>
using namespace std;
|
by: Doug Baroter |
last post by:
Hi,
Don't worry about the vars, they are defined,
the following line give me an err of "Incorrect syntax near '.'."
Goal: to rename nonstardard column name.
EXEC sp_rename '+@tbuffer+'.','+Replace(+@cbuffer+','%%','')',
'COLUMN';
|
by: s_m_b |
last post by:
I'm building a suite of online forms for insurance. These have been
stripped down from messy MS Word templates, and two of the six,
substantially identical, are misbehaving with the .js page that validates
some of the content.
The correct behaviour is that some fields must have content, some must
have valid dates/times. On validation, the form is POSTed to a processing
page that flows it into a blank template and emails that elsewhere.
...
|
by: Tim Robinson |
last post by:
Hi,
I generally consider myself competent with the complexities of quoting but I
can't figure out postgres at all. I've read the manual and it looks very
straightforward but that doesn't accord with my experiences. Here's an
example:
create table temp (a varchar(50));
insert into temp values 'a\'b';
insert into temp values 'a\\b';
| |
by: sheldonlg |
last post by:
I need to do some modifications on some code I just inherited and that
code has me baffled.
On one page, caller.php, with method get there is an anchor with
href="foo.php?bar=123". On foo.php, the URL shows the parameter. So
far, so good.
In foo.php there is no $_GET statement to decipher the value from bar.
Furthermore, I did a grep of the entire code base for $_GET and for
$_REQUEST and there was none. The code then proceeds to...
|
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: 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...
|
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...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |