Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 11:39 PM
Mel
Guest
 
Posts: n/a
Default css inheritance...

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


  #2  
Old July 20th, 2005, 11:39 PM
Els
Guest
 
Posts: n/a
Default Re: css inheritance...

Mel wrote:
[color=blue]
> 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 ?[/color]

You mean like this?

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

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

  #3  
Old July 20th, 2005, 11:39 PM
Mel
Guest
 
Posts: n/a
Default Re: css inheritance...

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" <els.aNOSPAM@tiscali.nl> wrote in message
news:40acad71$0$41758$5fc3050@dreader2.news.tiscal i.nl...[color=blue]
> Mel wrote:
>[color=green]
> > 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[/color][/color]
box[color=blue][color=green]
> > to be dotted around the border ?[/color]
>
> You mean like this?
>
> #BOX {
> padding:10px;
> margin:10px;
> border: 1px dotted #CCCCCC;
> }
>
> --
> Els
> http://locusmeus.com/
> Sonhos vem. Sonhos vão. O resto é imperfeito.
> - Renato Russo -
>[/color]


  #4  
Old July 20th, 2005, 11:39 PM
Els
Guest
 
Posts: n/a
Default Re: css inheritance...

Mel wrote:
[color=blue]
> "Els" <els.aNOSPAM@tiscali.nl> wrote in message
> news:40acad71$0$41758$5fc3050@dreader2.news.tiscal i.nl...
>[color=green]
>>Mel wrote:
>>[color=darkred]
>>>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 ?[/color]
>>
>>You mean like this?
>>
>>#BOX {
>>padding:10px;
>>margin:10px;
>>border: 1px dotted #CCCCCC;
>>}[/color]
>
> NO![/color]

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

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 vão. O resto é imperfeito.
- Renato Russo -

  #5  
Old July 20th, 2005, 11:39 PM
Arne
Guest
 
Posts: n/a
Default Re: css inheritance...


Mel wrote:

Top posting corrected
[color=blue]
>
> "Els" <els.aNOSPAM@tiscali.nl> wrote in message
> news:40acad71$0$41758$5fc3050@dreader2.news.tiscal i.nl...
>[color=green]
>>Mel wrote:
>>
>>[color=darkred]
>>>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[/color][/color]
>
> box
>[color=green][color=darkred]
>>>to be dotted around the border ?[/color]
>>
>>You mean like this?
>>
>>#BOX {
>>padding:10px;
>>margin:10px;
>>border: 1px dotted #CCCCCC;
>>}
>>
>>--
>>Els
>>http://locusmeus.com/
>>Sonhos vem. Sonhos vão. O resto é imperfeito.
>> - Renato Russo -
>>[/color]
> NO!
>
> because i have so many other items that i want to be dotted and[/color]
don't want[color=blue]
> to include "border: 1px dotted #CCCCCC;" everywhere !!!
>
> Mel[/color]


What about

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

--
/Arne
  #6  
Old July 20th, 2005, 11:39 PM
Els
Guest
 
Posts: n/a
Default Re: css inheritance...

Arne wrote:
[color=blue][color=green]
>>because i have so many other items that i want to be dotted and[/color]
> 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.[/color]

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 vão. O resto é imperfeito.
- Renato Russo -

  #7  
Old July 20th, 2005, 11:39 PM
Mel
Guest
 
Posts: n/a
Default Re: css inheritance...

yep, that will do it just faaaaaaaaaaaine
thanks a lot
Mel

"Els" <els.aNOSPAM@tiscali.nl> wrote in message
news:40acb34f$0$41762$5fc3050@dreader2.news.tiscal i.nl...[color=blue]
> Mel wrote:
>[color=green]
> > "Els" <els.aNOSPAM@tiscali.nl> wrote in message
> > news:40acad71$0$41758$5fc3050@dreader2.news.tiscal i.nl...
> >[color=darkred]
> >>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[/color][/color][/color]
box[color=blue][color=green][color=darkred]
> >>>to be dotted around the border ?
> >>
> >>You mean like this?
> >>
> >>#BOX {
> >>padding:10px;
> >>margin:10px;
> >>border: 1px dotted #CCCCCC;
> >>}[/color]
> >
> > NO![/color]
>
> No need to shout, I'm not deaf.
>[color=green]
> > because i have so many other items that i want to be dotted and don't[/color][/color]
want[color=blue][color=green]
> > to include "border: 1px dotted #CCCCCC;" everywhere !!![/color]
>
> 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 vão. O resto é imperfeito.
> - Renato Russo -
>[/color]


  #8  
Old July 20th, 2005, 11:39 PM
Arne
Guest
 
Posts: n/a
Default Re: css inheritance...


Els wrote:
[color=blue]
> Arne wrote:
>
>[color=green][color=darkred]
>>>because i have so many other items that i want to be dotted and[/color]
>>
>>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.[/color]
>
>
> That would be even more typing, if I understand you
> correctly. Besides, you can't use the same ID twice.[/color]

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

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles