Click to See Complete Forum and Search --> : [RESOLVED] Adding CSS to my Webpage
Shelley Hemrich
09-23-2006, 03:36 PM
I need to add buttons using css code. When I add the code to my web page the text that is already there doesn't work any more. There is something I am missing in the code. Does anyone have a suggestion?
Shelley
What do you mean by "the text that is already there doesn't work any more?"
Usually, text is static -- so your statement needs clarification.
A link to the page in question might be helpful, too! :)
KDLA
Shelley Hemrich
09-23-2006, 08:15 PM
I created a web page that links and shows images. I am trying to change the links to buttons. I created a web page just to design the buttons and they work. They link to the other pages like they're supposed to. Then I try to add these codes to my original page and all I get is a blank screen. It's because I have something wrong in my css. This is the first I've tried to apply css. I'm not catching on very quickly.
ps thank you for replying.
ray326
09-23-2006, 10:32 PM
It's more likely you clobbered your HTML when you put the new button code in. It'll be a lot easier to help if you'll post a link to the bad page.
Shelley Hemrich
09-23-2006, 11:33 PM
I don't know how to post a link to the bad page.
NogDog
09-24-2006, 12:09 AM
I don't know how to post a link to the bad page.
If the page is accessible from the internet, just post the address here (e.g: http://www.yoursite.com/pagename.html).
If it's not yet on the web, then copy-and-paste the code in a reply here, and surround that code with either [ html ] ... [ /html] or [ code ] ... [ /code ] tags (without the spaces I typed here.
Quick suggestion: run your page through the HTML Validator (http://validator.w3.org/), and then when you've fixed any errors it reports, run it through the CSS Validator (http://jigsaw.w3.org/css-validator/). Odds are high that one or both of them will pinpoint where you've gone wrong.
Shelley Hemrich
09-24-2006, 01:46 PM
I'll validate now. The page isn't accessible. I've not gotten that far. When I get done validating I'll copy and paste the code here. Is it possible to place the file here?
NogDog
09-24-2006, 02:39 PM
It is possible to attach files here (click the "Post Reply" button or the "Go Advanced" button beneath the quick reply form, below, and look for the "Manage Attachments" button toward the bottom of the page). However, my experience is that people are more likely to view the source if it's posted within your reply (using the HTML or CODE vbCode tags (http://www.webdeveloper.com/forum/misc.php?do=bbcode)) than if they have to download and open an attached file.
Shelley Hemrich
09-24-2006, 06:46 PM
I finally got it to work. Now I am trying to validate the pages. I'm hung up on this page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<content="text/html; charset=windows-1252" http-equiv=content-type>
<html>
<head>
<title>Picture of Blake</title>
<body bgcolor="black"><font face="futura BK" font color="aqua">
</head>
<img src="blake.jpg" width="600" height="400" alt="Here is a picture of Blake" style="float: right;"><a href="index.html">Back</a>
<p>
Blake is nine years old. Here you can see we have a difficult time getting him to sit down for a hair cut. He wants to grow his hair out long. I often tell him if his room isn't cleaned up in the next fifteen minutes he is getting a hair cut. I don't know how hair became such a priority to this kid but I do use it as leverage.
Here are a few other things that Blake finds important.
</p>
<ul>
<li>Skateboarding</li>
<li>Friends</li>
<li>School work and good grades</li>
<li>Zelda</li>
</ul>
Maybe not in that order. I made Blake a Link costume for Halloween last year and we talk about Link and Zelda a lot.
</html>
I have changed encoding several times. I don't know what it wants.
ray326
09-24-2006, 11:34 PM
The head should close before the body.
Shelley Hemrich
09-26-2006, 12:51 AM
Thank you. I don't know why I couldn't see that.
Don't worry about it. I once worked on some problem scripting FOR ABOUT THREE HOURS, trying to get it to work..... Come to find out the reason was my never noticing a capital "P." :D