Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   HTML (http://www.velocityreviews.com/forums/f31-html.html)
-   -   HTML Background Colors (http://www.velocityreviews.com/forums/t373111-html-background-colors.html)

freesoft_2000 09-23-2006 07:18 PM

HTML Background Colors
 
Hi everyone,

Does anyone know how to change part of the background
color of a paragraph something down the lines like using css with the span
tag except that i do not want to use any css at all.

Can this be done at all and is it possible to be done.

A short example would really be helpful

Any help is greatly appreciated

Thank You

Yours Sincerely

Richard West


Leif K-Brooks 09-23-2006 07:27 PM

Re: HTML Background Colors
 
freesoft_2000 wrote:
> Does anyone know how to change part of the background color of a
> paragraph


p.foo {
background-color: red;
color: black;
}

> something down the lines like using css with the span tag except that
> i do not want to use any css at all.


Why not? That's what it's for.

freesoft_2000 09-23-2006 07:40 PM

Re: HTML Background Colors
 
Hi everyone,

>> Why not? That's what it's for.


Its just for some special requirement i have.
Anyways is it possible to do it without CSS?

Richard West


Leif K-Brooks 09-23-2006 07:43 PM

Re: HTML Background Colors
 
freesoft_2000 wrote:
>> Why not? That's what it's for.

>
> Its just for some special requirement i have.
> Anyways is it possible to do it without CSS?


What, are you in a "Designing Web sites the Rube Goldberg way" contest
or something?

freesoft_2000 09-23-2006 08:09 PM

Re: HTML Background Colors
 
Hi everyone,

>>What, are you in a "Designing Web sites the >>Rube Goldberg way" contest


>>or something?


Something like that but its more of a browser with an in built html
parser.

Anyways going back to the original question, is it possible for me to do
this without CSS?

Richard West


freemont 09-23-2006 08:32 PM

Re: HTML Background Colors
 
On Sat, 23 Sep 2006 16:09:06 -0400, freesoft_2000 wrote:

> Hi everyone,
>
>>>What, are you in a "Designing Web sites the >>Rube Goldberg way" contest

>
>>>or something?

>
> Something like that but its more of a browser with an in built html
> parser.
>
> Anyways going back to the original question, is it possible for me to do
> this without CSS?


*If* the style attribute doesn't count as CSS:

<html><body><p><font style="background-color:red;">Hello
there</font></p></body></html>

I hope you don't think that this is good markup. The font tag is simply
not acceptable any more.

--
"Because all you of Earth are idiots!"
¯`ˇ.¸¸.ˇ´¯`ˇ-> freemontŠ <-ˇ´¯`ˇ.¸¸.ˇ´¯

Leif K-Brooks 09-23-2006 08:34 PM

Re: HTML Background Colors
 
freemont wrote:
> *If* the style attribute doesn't count as CSS:
>
> <html><body><p><font style="background-color:red;">Hello
> there</font></p></body></html>
>
> I hope you don't think that this is good markup. The font tag is simply
> not acceptable any more.


Why not put the style attribute on the p element itself?

freemont 09-23-2006 08:37 PM

Re: HTML Background Colors
 
On Sat, 23 Sep 2006 16:34:49 -0400, Leif K-Brooks wrote:

> freemont wrote:
>> *If* the style attribute doesn't count as CSS:
>>
>> <html><body><p><font style="background-color:red;">Hello
>> there</font></p></body></html>
>>
>> I hope you don't think that this is good markup. The font tag is simply
>> not acceptable any more.

>
> Why not put the style attribute on the p element itself?


Because he said "part of the background color of a paragraph". Of course
if he wants the whole <p> colored, that'd be a way to do it. :-)

--
"Because all you of Earth are idiots!"
¯`ˇ.¸¸.ˇ´¯`ˇ-> freemontŠ <-ˇ´¯`ˇ.¸¸.ˇ´¯

dorayme 09-23-2006 10:01 PM

Re: HTML Background Colors
 
In article
<062953999ddd8797b7acec2aab40b9b3@localhost.talkab outprogramming.
com>,
"freesoft_2000" <freesoft_2000@yahoo.com> wrote:

> Hi everyone,
>
> Does anyone know how to change part of the background
> color of a paragraph something down the lines like using css with the span
> tag except that i do not want to use any css at all.
>
> Can this be done at all and is it possible to be done.
>
> A short example would really be helpful
>


You mean you want

<p>I am in black and white and I know you can see me this way but
I want you to forget what you are seeing and concentrate very
very very hard on the following instructions. Are you very
relaxed? You are feeling a little sleepy. You are now starting to
imagine black on red and now you can see that... I am black on
red.</p>

without the lowdown no-good impostering-trickster-shyster con-job
of:

<p>I am in black and white and I know you can see me this way but
I want you to forget what you are seeing and concentrate very
very very hard on the following instructions. Are you very
relaxed? You are feeling a little sleepy. You are now starting to
imagine black on red and now you can see that... <span
style="background:red;">I am black on red</span>.</p>

?

--
dorayme


All times are GMT. The time now is 07:43 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57