Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.

Lionsanime Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 06-11-2005, 06:48 AM   #1 (permalink)
Inactive
 
Join Date: 02-18-04
Location: Duisburg, Germany
Posts: 25
iTrader: 0 / 0%
Latest Blog:
None

Banjika is liked by many
Send a message via MSN to Banjika
Two HTML similar codes , one working well and another not working why?

I have two codes and they behave in a way I do not understand.
Code (1) is similar to code (2) except for the fact that in case of code (1)
body background color is black as it appears here;
body { background-color: black; }
see complete code for (1) below.

In case of code (2) body background color is forestgreen as it appears here
body { background-color: forestgreen; }

However when I save these two codes as html documents and open them using windows explorer code (1) works well but code (2) doesn`t.

See complete codes below.
Where exactly is the problem?



Code (1)

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

body { background-color: black; }
p { background-color: azure; }
h2 { background-color: red; }




</style>
</head>

<a name="top">

<a href="Webpage Home.html">HOME</a>
align="center"><a href="cameroon.html">MORE ABOUT

CAMEROON</a>
<a href="areas_of_ interest.html">AREAS OF INTEREST</a>
<a href="nso.html">CULTRUAL HERITAGE</a>

<body>
<h2>COMPLETE PAGE COMING SOON !!!!!</h2>
<p> Space and exploration...http://www.explorations.tv/

coming soon</p>
<p>beyond the universe... coming soon</p>

<a href ="#top"> Top </a>
align="center"><a href="cameroon.html">MORE ABOUT

CAMEROON</a>
<a href="Webpage Home.html">HOME</a>
<a href="areas_of_ interest.html">AREAS OF INTEREST</a>
<a href="nso.html">CULTRUAL HERITAGE</a>
</body>
</html>



Code (2)

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

body { background-color: forestgreen; }
p { background-color: azure; }
h2 { background-color: red; }




</style>
</head>

<a name="top">

<a href="Webpage Home.html">HOME</a>
align="center"><a href="cameroon.html">MORE ABOUT

CAMEROON</a>
<a href="areas_of_ interest.html">AREAS OF INTEREST</a>
<a href="nso.html">CULTRUAL HERITAGE</a>

<body>
<h2>COMPLETE PAGE COMING SOON !!!!!</h2>
<p> Space and exploration...http://www.explorations.tv/

coming soon</p>
<p>beyond the universe... coming soon</p>

<a href ="#top"> Top </a>
align="center"><a href="cameroon.html">MORE ABOUT

CAMEROON</a>
<a href="Webpage Home.html">HOME</a>
<a href="areas_of_ interest.html">AREAS OF INTEREST</a>
<a href="nso.html">CULTRUAL HERITAGE</a>
</body>
</html>
Banjika is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 06-11-2005, 07:14 AM   #2 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,941
iTrader: 0 / 0%
Latest Blog:
None

imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
First, of all what exactly is the error or the problem?

Second, you do have some html issues on both pages.

1) You have a missing bracket twice on each of the pages. I am assuming you were trying <P align="center">.
Code:
align="center">
2) You have some HTML links and then the <BODY> tag. I would make sure the <BODY> tag is right after the <HEAD> tag.

Other than that both pages look exactly the same visually in IE 6.

imaginemn
__________________
Imagine Creative Services
Design : Marketing : Multimedia : More
imaginemn is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML: 2 simple html codes. mybluehair Coding Forum 6 04-20-2007 11:59 AM
Working at v7 = fun John Scott Forum Lobby 19 04-09-2007 06:13 AM
Need help with HTML codes in Dreamweaver. marie6 Web Design Lobby 5 12-01-2006 02:22 PM
CSS Style not working for iframe HTML files... FantasyRealms Coding Forum 4 01-30-2004 08:50 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 06:00 PM.
© Copyright 2008 V7 Inc