PDA

View Full Version : Webpage Boarder



Bytch_Amy
08-21-2008, 09:43 PM
Before i attempted to change my code i thought id ask people here since this is a excellent site. Can i leave the table boarder size & use #ff0000 instead of a color name on it. Or am i nt ableto do that with my code? I do want to be able to edit size of it to.



<STYLE>
body {
Border-top: 15px solid darkred;
border-bottom: 15px solid darkred;
border-right: 30px solid darkred;
border-left: 30px solid darkred; }
body {
</STYLE>

Nile
08-21-2008, 09:48 PM
1) Don't use <style> </style> use <style type="text/css"> </style>.
2) You've got two body { parts in the style, only use one.
3) Indent your code please.
4) Don't capitalize border.
5) Here's your correct code including with that you asked for:


<style type="text/css">
body {
border-color: #ff0000;
border-top: 15px solid darkred;
border-bottom: 15px solid;
border-right: 30px solid;
border-left: 30px solid;
}
</style>

Bytch_Amy
08-21-2008, 10:15 PM
That makes sense but cant I keep the 15px in my code cause that help me adjust the thinkness or size of te boarder ?

Nile
08-21-2008, 10:50 PM
Sorry I've tested the code, and just thought that this would be the best solution:


<style type="text/css">
body {
border-top: 15px solid #ff0000;
border-bottom: 15px solid #ff0000;
border-right: 30px solid #ff0000;
border-left: 30px solid #ff0000;
}
</style>
And what do you mean can I keep the 15px in? Its there already. :/