473,383 Members | 1,925 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,383 software developers and data experts.

question about a link, a font and a color

alright, I am a newbie at CSS (or HTML)
and I have this script(this one is for myspace:p):


<html>
<head>
<style type="text/css">

h1 {color: #228B22} {font-family: courier new}
h2 {color: #228B22 } {font-family: courier new}
h3 {color: #228B22 } {font-family: courier new}
h4 {color: #228B22 } {font-family: courier new}

</style>
</head>
<body>

<p>
<h1>Dennis Theys:</h1>
<img src="http://i191.photobucket.com/albums/z151/mewy2/Dennis20A530600.jpg" width="265" height="300" />
</p>

<p>
<h2>Stef Van Linden:</h2>
<img src="http://i191.photobucket.com/albums/z151/mewy2/Stef7530600.jpg" width="265" height="300" />
</p>

<p>
<h3>Jimi Verhaegen:</h3>
<img src="http://i191.photobucket.com/albums/z151/mewy2/Jimi17530600.jpg" width="265" height="300" />
</p>

<p>
<h3>Maxim Leyssens:</h3>
<img src="http://i191.photobucket.com/albums/z151/mewy2/Maxim18530600.jpg" width="265" height="300" />
</p>

</body>
</html>

the problem is that my text remains black and isn't courier
can someone help me please?
May 14 '07 #1
4 1445
MMcCarthy
14,534 Expert Mod 8TB
This question is being moved to the HTML / CSS forum.

ADMIN
May 14 '07 #2
drhowarddrfine
7,435 Expert 4TB
A lot of that code is invalid. You can't put heading tags inside paragraphs. And this:
Expand|Select|Wrap|Line Numbers
  1. h1 {color: #228B22} {font-family: courier new}
  2.  
should be this:
Expand|Select|Wrap|Line Numbers
  1. h1{
  2. color:#228b22;
  3. font-family: "courier new"
  4. }
May 14 '07 #3
should I use "p1" instead of "h1" then?
May 15 '07 #4
no, i can't put p1 but it just has to be p!!
thanks for your help, it's finished now: or just go to www.myspace.com/angelsonacross

<html>
<head>
<style type="text/css">

p{
color:#228b22;
font-family: "courier new"
}

p2{
color:#228b22;
font-family: "courier new"
}

p3{
color:#228b22;
font-family: "courier new"
}

p4{
color:#228b22;
font-family: "courier new"
}

</style>
</head>
<body>

<p>
<p>Dennis Theys</p>
<img src="http://i191.photobucket.com/albums/z151/mewy2/Dennis20A530600.jpg" width="265" height="300" />
</p>

<p>
<p>Stef Van Linden</p>
<img src="http://i191.photobucket.com/albums/z151/mewy2/Stef7530600.jpg" width="265" height="300" />
</p>

<p>
<p>Jimi Verhaegen</p>
<img src="http://i191.photobucket.com/albums/z151/mewy2/Jimi17530600.jpg" width="265" height="300" />
</p>

<p>
<p>Maxim Leyssens</p>
<img src="http://i191.photobucket.com/albums/z151/mewy2/Maxim18530600.jpg" width="265" height="300" />
</p>

</body>
</html>
May 15 '07 #5

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

Similar topics

11
by: Hello | last post by:
Hello, I am a self-taught home developer: Question: As it seems, most CSS people like to use DIVs as a division between styles. So, they would have a style for a div tag that would hold some...
11
by: NS | last post by:
I am relativly new to css positioning and have a question regarding the display of a DHTML pop-up Here is the basic HTML I am using: <html> <head> <script language="JavaScript"> <!--
9
by: SASRS | last post by:
Here is my code. I am trying to see if I can put a %@ LANGUAGE="VBSCRIPT" %> <% FieldA = Request.QueryString("A") FieldB = Request.QueryString("B") FieldC = Request.QueryString("C") ...
2
by: mirza i | last post by:
thanks for the previous replies. here is the new question (i'm absolutely sure that this should be VERY easy for a good js coder) ok: from asp i call: <img src="pics/cal.gif"...
5
by: amerar | last post by:
Hi All, I have this CSS that I use in one of my emails. When I view the email in Netscape, the style sheet looks fine and the page comes out fine....... However, when I view the email using...
4
by: kevinm3574 | last post by:
I've got a link defined in my html as href="abc123.html" in a <div id="abc123"> block. The link text displays just fine but the link won't show as an available link. If I change the <div id from...
4
by: NWx | last post by:
Hi, Can someone explain me how can I set a CSS for a hyperlink? I have the following definitions in .css file /* definition 1*/ A.HWHeaderLink:hover {
14
by: UJ | last post by:
What's the easiest way (without setting up a style sheet) to set the font for an area of text. I need to be able to specify the exact font and font size - not the 1-7 numbers IE uses. I want to be...
1
by: Sallana | last post by:
Hello guys. My name is Lynne and I am currently trying to build a website for a game that I play online called Exodus. This is the page --> http://exodus.mudmagic.com Immediately you can...
14
by: Daniel Kaplan | last post by:
So my style sheet has many different types of LINK styles. And they all work fine on IE, even different styles on the same page. But in Firefox, all link throughout my site all follow JUST the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.