Topic: Hmm....why border doesn't turn up??? Pages that link to <a href="https://ozoneasylum.com/backlink?for=10995" title="Pages that link to Topic: Hmm....why border doesn&amp;#039;t turn up???" rel="nofollow" >Topic: Hmm....why border doesn&#039;t turn up???\

 
Author Thread
Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

IP logged posted posted 06-21-2003 12:13 Edit Quote

Hi, guys. How are ya?
I am having a bit problem of setting border for my div.
My code is here:

code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body>

<div id="Layer1" style="position:absolute; left:0px; top:0px; width:60%;

height:100%; z-index:1; background-color: #0000FF; layer-background-color:

#0000FF;">

<div id="Layer2" style="position:absolute; left:0px; top:0px; width:50%;

height:50%; z-index:2; background-color: red; border: 10px none #000;">


</div></div>

</body>
</html>



I set second division's border like: border: 10px none #000. So I expected white thick line. But nothing happened.
Would you see anything wrong???
Please would you let me know if you find something.
Cya.

Hiroki Kozai

quisja
Paranoid (IV) Inmate

From: everywhere
Insane since: Jun 2002

IP logged posted posted 06-21-2003 12:20 Edit Quote

border: 10px none #000 wont work as intended because "none" means no border -- you probably want "solid" -- and #000 is black not white (#fff). Also, I'm not sure what that layer-background -colour is doing, is that a NS thing?

Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

IP logged posted posted 06-21-2003 12:23 Edit Quote

Hi, mate. Many many thanks for your reply.
It worked.
Hmm....I am forgetting a lot of thing about CSS.
I have to review it myself.....
I have been busy with struggling with JavaScript though.
Have a good night.
Cya.

Hiroki Kozai

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 06-22-2003 02:27 Edit Quote

Yeah, quisja's right - that "layer-background-color" thing should be removed. Was there a specific reason you had it there?

Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

IP logged posted posted 06-22-2003 03:41 Edit Quote

Hi, Slime. Many thanks for your reply.
Well, honestly I know nothing about layer-background stuff.
I have been trying to modify my tutor's html code included CSS.
Why do you think it should be removed? And actually what is it???


Hiroki Kozai

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 06-22-2003 04:17 Edit Quote

"layer-background-color: #0000FF;" should be removed. There's no such thing as a layer-background-color. background-color is fine, but layer-background-color is not. I've never heard about it before. It's not standard, anyway.

Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

IP logged posted posted 06-22-2003 04:26 Edit Quote

Many thanks, Slime.
Yesterday I was looking for such a word from w3schools.com css2 list.
But there is no such a thing...
Hmm.....I have to tell my tutor about it.
Thanks a lot.

Hiroki Kozai



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu