473,407 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Chamging Text in CSS

CSS Question: Using CSS, I coded this line:

1. Richards J, Rodan I, Elston T, et al: 2000 Report of the American Association of Feline Practitioners and Academy of Feline Medicine Advisory Panel on Feline Vaccines,
Nashville, TN.

... the following way:
<ol class="reflist">
<li class="reflist">
<p class="refp">Richards J, Rodan I, Elston T, et al:</p><p class="refital">2000 Report of the American
Association of Feline Practitioners and Academy of Feline Medicine Advisory
Panel on Feline Vaccines,</p><p class="refp">Nashville, TN.</p></li>
</ol>

The CSS code is:
...
ol.reflist {
font-weight: bold;
text-decoration: none;
text-align: left;
margin-bottom: 30px;
list-style: decimal outside;
}
li.reflist {
font-weight: bold;
text-align: left;
margin: 0px 0px 10px;
list-style: decimal outside;
}
p {
margin: 10px;
padding: 0;
font-weight: bold;
font-size: 120%;
text-align: center;
}
p.refp {
font-weight: bold;
text-align: justify;
margin: 0;
}
p.refital {
font-style: italic;
font-weight: bold;
text-align: justify;
margin: 0px;
}
....

I'm probably doing it the hard way (at least I hope so) because the resulting markup seems too complex.

Can someone point out my mistakes?
Aug 18 '06 #1
2 1484
Banfa
9,065 Expert Mod 8TB
what is wrong with

[html]
<ol class="reflist">
<li>
Richards J, Rodan I, Elston T, et al:<em>2000 Report of the American
Association of Feline Practitioners and Academy of Feline Medicine
Advisory Panel on Feline Vaccines,</em>Nashville, TN.
</li>
</ol>
[/html]

The CSS code
[html]
ol.reflist {
font-weight: bold;
text-decoration: none;
text-align: left;
margin-bottom: 30px;
list-style: decimal outside;
}
ol.reflist li {
font-weight: bold;
text-align: left;
margin: 0px 0px 10px;
padding: 10px;
list-style: decimal outside;
font-size: 120%;
text-align: justify;
}
[/html]
Aug 18 '06 #2
Thank you Banfa ... knew I was trying to make mountain ...
Aug 19 '06 #3

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

Similar topics

2
by: Jürgen Holly | last post by:
Hi! I have the following xml-node: <docu> <p>Sample: <b>bold</b></p> <p>and text in <i>italic</i></p> </docu> I need to create a text-file, so I set the output-mode to text.
3
by: Xerxes | last post by:
Hi, I need help in setting up a page where the text wraps around an image. Right now, I am using table, with text in one <td> and the image in the adjacent <td>. The problem is when the text is...
2
by: Macsicarr | last post by:
Hi All Wonder if you could help me. I have created a CMS system that allows the user to enter text and pic 'tags' for their own About us page, eg text.... text.... text.... text.......
4
by: Arif Çimen | last post by:
Hi to everybody, I have chnged a button text in design mode. But After compiling and executing the program the text of the button do not change to new value. Any Ideas? Thaks for helps.
3
by: jweinberg1975 | last post by:
I would like for users to be able to select from a small number of options that come from a little drop down menu which then closes. .....
3
by: bbepristis | last post by:
Hey all I have this code that reads from one text file writes to another unless im on a certian line then it writes the new data however it only seems to do about 40 lines then quits and I cant...
3
by: acecraig100 | last post by:
I am fairly new to Javascript. I have a form that users fill out to enter an animal to exhibit at a fair. Because we have no way of knowing, how many animals a user may enter, I created a table...
3
by: jonniethecodeprince | last post by:
Hi all, I have trouble getting an array of data stored in a separate javascript file i.e. a file called books.js into a table of data for a .xhtml file. There are 50 Records in this file....
10
by: bluemountain | last post by:
Hi there, Iam new to python forms and programming too I had a text file where i need to extract few words of data from the header(which is of 3 lines) and search for the keyword TEXT1, TEXT2,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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,...
0
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...

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.