467,910 Members | 1,886 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,910 developers. It's quick & easy.

css inheritance...

Mel
i have :

#DOTTED {
BORDER: CCCCCC 1px dotted;
}

and:

#BOX {
padding: 10px;
margin: 10px;
}

how can i inherit dotted when i use the BOX ? in otherwords, i want my box
to be dotted around the border ?

thankx
Jul 20 '05 #1
  • viewed: 1650
Share:
7 Replies
Els
Mel wrote:
i have :

#DOTTED {
BORDER: CCCCCC 1px dotted;
}

and:

#BOX {
padding: 10px;
margin: 10px;
}

how can i inherit dotted when i use the BOX ? in otherwords, i want my box
to be dotted around the border ?


You mean like this?

#BOX {
padding:10px;
margin:10px;
border: 1px dotted #CCCCCC;
}

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #2
Mel
NO!

because i have so many other items that i want to be dotted and don't want
to include "border: 1px dotted #CCCCCC;" everywhere !!!

Mel
"Els" <el*********@tiscali.nl> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
Mel wrote:
i have :

#DOTTED {
BORDER: CCCCCC 1px dotted;
}

and:

#BOX {
padding: 10px;
margin: 10px;
}

how can i inherit dotted when i use the BOX ? in otherwords, i want my box to be dotted around the border ?


You mean like this?

#BOX {
padding:10px;
margin:10px;
border: 1px dotted #CCCCCC;
}

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #3
Els
Mel wrote:
"Els" <el*********@tiscali.nl> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
Mel wrote:
i have :
#DOTTED {
BORDER: CCCCCC 1px dotted;
}
and:
#BOX {
padding: 10px;
margin: 10px;
}
how can i inherit dotted when i use the BOX ? in otherwords, i want my box
to be dotted around the border ?
You mean like this?

#BOX {
padding:10px;
margin:10px;
border: 1px dotted #CCCCCC;
}


NO!


No need to shout, I'm not deaf.
because i have so many other items that i want to be dotted and don't want
to include "border: 1px dotted #CCCCCC;" everywhere !!!


You only asked about #BOX, not about 'so many other items'.
But don't worry, it's possible.

#DOTTED, #BOX, #so, #many, #other, #items {
border:1px dotted #CCCCCC;
}
They don't all have to be id's, could be just as well like this:

..so, .many, .other, .items {
border:1px dotted #CCCCCC;
}

Does this answer suit you better?

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #4

Mel wrote:

Top posting corrected

"Els" <el*********@tiscali.nl> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
Mel wrote:

i have :

#DOTTED {
BORDER: CCCCCC 1px dotted;
}

and:

#BOX {
padding: 10px;
margin: 10px;
}

how can i inherit dotted when i use the BOX ? in otherwords, i want my
box
to be dotted around the border ?
You mean like this?

#BOX {
padding:10px;
margin:10px;
border: 1px dotted #CCCCCC;
}

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

NO!

because i have so many other items that i want to be dotted and

don't want to include "border: 1px dotted #CCCCCC;" everywhere !!!

Mel

What about

ID="box" style="border: 1px dotted #CCCCCC;" where you want a box with
dotted border.

--
/Arne
Jul 20 '05 #5
Els
Arne wrote:
because i have so many other items that i want to be dotted and

don't want to include "border: 1px dotted #CCCCCC;" everywhere !!!

What about

ID="box" style="border: 1px dotted #CCCCCC;" where you want a box with
dotted border.


That would be even more typing, if I understand you
correctly. Besides, you can't use the same ID twice.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #6
Mel
yep, that will do it just faaaaaaaaaaaine
thanks a lot
Mel

"Els" <el*********@tiscali.nl> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
Mel wrote:
"Els" <el*********@tiscali.nl> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
Mel wrote:

i have :
#DOTTED {
BORDER: CCCCCC 1px dotted;
}
and:
#BOX {
padding: 10px;
margin: 10px;
}
how can i inherit dotted when i use the BOX ? in otherwords, i want my boxto be dotted around the border ?

You mean like this?

#BOX {
padding:10px;
margin:10px;
border: 1px dotted #CCCCCC;
}


NO!


No need to shout, I'm not deaf.
because i have so many other items that i want to be dotted and don't want to include "border: 1px dotted #CCCCCC;" everywhere !!!


You only asked about #BOX, not about 'so many other items'.
But don't worry, it's possible.

#DOTTED, #BOX, #so, #many, #other, #items {
border:1px dotted #CCCCCC;
}
They don't all have to be id's, could be just as well like this:

.so, .many, .other, .items {
border:1px dotted #CCCCCC;
}

Does this answer suit you better?

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #7

Els wrote:
Arne wrote:

because i have so many other items that i want to be dotted and


don't want to include "border: 1px dotted #CCCCCC;" everywhere !!!

What about

ID="box" style="border: 1px dotted #CCCCCC;" where you want a box with
dotted border.

That would be even more typing, if I understand you
correctly. Besides, you can't use the same ID twice.


If figure if she wanted only that box with dotted border and nothing
else, that should be the simle way. When I see here reply to you I
understand your way is the rigth thing to do :-)

--
/Arne

Jul 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Graham Banks | last post: by
4 posts views Thread by JKop | last post: by
5 posts views Thread by Morgan Cheng | last post: by
10 posts views Thread by davidrubin | last post: by
14 posts views Thread by Steve Jorgensen | last post: by
22 posts views Thread by Matthew Louden | last post: by
45 posts views Thread by Ben Blank | last post: by
6 posts views Thread by Bart Simpson | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.