By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,394 Members | 1,912 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,394 IT Pros & Developers. It's quick & easy.

css inheritance...

P: n/a
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
Share this Question
Share on Google+
7 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a

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

P: n/a
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

P: n/a
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

P: n/a

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.