There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Solved: CSS/HTML Issues


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
I Fix 4 U's Avatar
Computer Specs
Distinguished Member with 6,460 posts.
 
Join Date: Jul 2004
Location: Louisiana
Experience: 1+3+3=7
14-May-2005, 01:32 PM #1
Solved: CSS/HTML Issues
I'm trying to make my website work out where all the headings are white and centered. W3C says im 100% valid but when i browse the page i can't see the text because they show up black and not white, and they are not centered.

misc.html
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>MISC</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<META http-equiv="Content-Style-Type" content="text/css">
	<link rel="stylesheet" href="mystyle.css">
</head>
<body>
<center><img src="basetab.jpg" alt="basetab" useMap="#map01" border="0"></center>
	<map NAME="map01">
		<!-- #$-:Image Map file created by Map THIS! -->
		<!-- #$-:Map THIS! free image map editor by Todd C. Wilson -->
		<!-- #$-:Please do not edit lines starting with "#$" -->
		<!-- #$VERSION:1.30 -->
		<!-- #$DESCRIPTION:basetab -->
		<!-- #$AUTHOR:ixneonxi -->
		<!-- #$DATE:Tue Apr 19 21:35:04 2005 -->
		<!-- #$PATH:C:\Documents and Settings\Owner\My Documents\MySite\Current\ -->
		<!-- #$GIF:basetab.jpg -->
	<AREA SHAPE=RECT COORDS="0,0,169,53" HREF="shell.htm" ALT="shell">
	<AREA SHAPE=RECT COORDS="185,16,357,70" HREF="stats.html" ALT="rsstats">
	<AREA SHAPE=RECT COORDS="374,0,545,52" HREF="misc.html" ALT="misc">
	<AREA SHAPE=RECT COORDS="558,14,728,70" HREF="page1.html" ALT="page1">
	
	</map>
<h1> I am Mojo In Hell_AKA: iXneonXi </h1>
<h2> X-fire troubleshooting links </h2>
<br>
<p>
<a href="/text/dxdiag.txt"> Dxdiag.txt</a>
<a href="/text/xfire_toucan_log.txt">Xfire Log</a> 
<a href="/text/adblock.txt">Adblock filters</a>
<br>
<a href="teamspeak://24.254.43.158:2303">Join My Teamspeak</a>
<br>
</p>
<p>
<font size="5" color="blue"> Religion Files</font> <br>
<a href="/text/relessay3.doc"> Spiritual Autobiography</a>
<a href="/text/relnotes2.doc"> Religion Notes</a>
</p>
    
</body>
</html>
mystyle.css
Code:
h1, h2, p
{
text-align:center;
color: rgb(0,0,0);
font-family: sans-serif
}

body {background-color: black}
__________________
My New Year's Resolution is 1280x1024, as my eyes do not support high-def.

"There's no place like 127.0.0.1"
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
14-May-2005, 01:59 PM #2
0,0,0 is black not white
I Fix 4 U's Avatar
Computer Specs
Distinguished Member with 6,460 posts.
 
Join Date: Jul 2004
Location: Louisiana
Experience: 1+3+3=7
14-May-2005, 02:18 PM #3
ok whats the color for white thats just a common mistake, now why is it not being aligned center?
bare in mind im just learning this lol started a couple days ago.
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
14-May-2005, 02:26 PM #4
255,255,255 is white. Why not just use Hex values #FFFFFF? ANyway, what does your entire CSS style tag look like on your page, is it enclosed in <style></style>???
I Fix 4 U's Avatar
Computer Specs
Distinguished Member with 6,460 posts.
 
Join Date: Jul 2004
Location: Louisiana
Experience: 1+3+3=7
14-May-2005, 03:14 PM #5
I tried to use the hex, i'd prefer to use the hex, when i do i lose my 100% validy code on the w3c validator. not to mention it doesn't work either way.
I did not put it into the html code i linked it to a seperate file so i can use it over again "<link rel="stylesheet" href="mystyle.css">"
__________________
My New Year's Resolution is 1280x1024, as my eyes do not support high-def.

"There's no place like 127.0.0.1"
I Fix 4 U's Avatar
Computer Specs
Distinguished Member with 6,460 posts.
 
Join Date: Jul 2004
Location: Louisiana
Experience: 1+3+3=7
14-May-2005, 03:15 PM #6
OMG i will give a final update but making the text white fixed the alignment!
I Fix 4 U's Avatar
Computer Specs
Distinguished Member with 6,460 posts.
 
Join Date: Jul 2004
Location: Louisiana
Experience: 1+3+3=7
14-May-2005, 03:35 PM #7
Ok one last request now that everything is cleaned up using a universal stylesheet for my site i would now ask for you to please clean this last part up.
It is my index.html but somehow even tho it seems valid the validator doesn't give me a 100%, so i wonder whats up.
The final product will be uploaded shortly.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>iXneonXi's Website</title>
<base target="mainFrame"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<frameset ROWS="100%" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0">
      <frame src="shell.htm" name="mainFrame">
</frameset>
<noframes> <body>Your browser does not support frames.</body> </noframes>
</html>
__________________
My New Year's Resolution is 1280x1024, as my eyes do not support high-def.

"There's no place like 127.0.0.1"
I Fix 4 U's Avatar
Computer Specs
Distinguished Member with 6,460 posts.
 
Join Date: Jul 2004
Location: Louisiana
Experience: 1+3+3=7
21-May-2005, 11:06 PM #8
Solved. My site (YAY) is 100% compatible.
Reply


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

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

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

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:41 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.