Click here to get back home

DIV and BGCOLOR

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
DIV and BGCOLOR Daniel Kaplan 09-22-2008
`--> Re: DIV and BGCOLOR Jukka K. Korpel...09-23-2008
Get Chitika Premium
Posted by Daniel Kaplan on September 22, 2008, 7:35 pm
Please log in for more thread options


Am I confused ot shouldn't I be able to say something like this:


<div bgcolor="#CCCCFF">
....
</div>


And have that section of my page/table be a light blue background?

Tried it inside the HTML as well as in a style sheet, and nothing.

Thanks ahead



Posted by Daniel Kaplan on September 22, 2008, 7:47 pm
Please log in for more thread options



> <div bgcolor="#CCCCFF">
> ....
> </div>

I meant to say that if the DIV is inside a table it won't work....if it's
outside the table, then it does...Surely there must be a way to use div to
change just a piece or portion of a table?



Posted by Ben C on September 23, 2008, 6:09 am
Please log in for more thread options


>
>> <div bgcolor="#CCCCFF">
>> ....
>> </div>
>
> I meant to say that if the DIV is inside a table it won't work....if it's
> outside the table, then it does...Surely there must be a way to use div to
> change just a piece or portion of a table?

No. You can use div inside a table cell or outside the whole table. If
you want to apply styles to portions of the table, use CSS selectors.

This kind of thing:

<table>
<div>
<tr>

is invalid (and not in a way you get away with).

Posted by dorayme on September 22, 2008, 8:07 pm
Please log in for more thread options



> Am I confused ot shouldn't I be able to say something like this:
>
>
> <div bgcolor="#CCCCFF">
> ....
> </div>
>
>
> And have that section of my page/table be a light blue background?
>
> Tried it inside the HTML as well as in a style sheet, and nothing.
>

<http://dorayme.890m.com/alt/kaplan.html>

--
dorayme

Posted by Daniel Kaplan on September 22, 2008, 8:57 pm
Please log in for more thread options



news:doraymeRidThis-
>
> <http://dorayme.890m.com/alt/kaplan.html>
>
But how about within a part of a table? Like spanning multiple rows and or
cells, while keeping the rest of the table alone. Is that possible? Cause
I can't do that. I can move the DIV tags to the front and end of the table
and get the entire table, but not pieces.

Please tell me it's possible.

Thanks regardless...



Similar ThreadsPosted
change bgColor March 10, 2006, 9:13 am
BGCOLOR only in Opera, not other browsers (valid page) May 4, 2008, 1:38 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap