View Full Version : Now my bgcolors have vanished!
Chewie
01-30-2006, 05:53 PM
This is the 75% done front page of my current project. Unfortunately, while the various bgcolors show up in the first page preview, they don't show when I look at it with my browser(firefox1.5)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=iso-8859-1" />
<title>home</title>
<style type="text/css">
div.c2 {text-align: center}
img.c1 {width: 150px; height: 200px;}
</style>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr bgcolor="#2147fd">
<td ><img class="c1" alt="ITWORX" src="itworxfiles/weblogo.jpeg" /></td>
<td >
<div class="c2">
<h1>Years of collective experience where the metal meets the meat</h1>
</div>
</td>
</tr>
<tr bgcolor="8336fa">
<td colspan="2">
<div class="c2"><h2>Your one stop shop for IT solutions that work in the real world</h2>
</div>
</td>
</tr>
<tr bgcolor="6d2fae">
<td width="25%">
<div class="c2">
<p>Hardware and Software Sales
and Installation</p>
<p>Internet
Jetstream and Wireless
Email, Antivirus and Firewalls</p>
<p>Troubleshooting</p>
<p>Data and Electrical Cabling</p>
<p>User Training</p>
<p>Networking</p>
</div>
</td>
<td>
<div class="c2">
<p>If you're looking for a single desktop or wireless Local Area Net for a large office, we can put together the hardware and software package that best suits you and your staff.</p>
</div>
</td>
</tr>
</tbody>
</table>
</body>
</html>
Chewie
01-30-2006, 05:56 PM
Now I'm depressed, the bgcolors work fine in IE.
*****************************************next post*************************
This is getting stranger. The bgcolors show up in dreamweaver, but not in Nvu. I'm going to check out what w3c says about bgcolors within <tr>.My copy of Sam's teach yourself html 4 in 24 hrs says it should work fine.
********************************************next post*************************
According to w3c bgcolor is an appropriate attribute for the <tr> tag.
*******************************************next post*****************************
Hmmm.... Maybe I can give the <tr> tags classes and use css to set the bgcolors.
Moderators note:combined posts for easier reading
Terminator1138
01-30-2006, 07:41 PM
I'm not sure what might be the issue....especially if it works in IE :) and not firefox and if w3c says its okay, let us know how it comes out
Chewie
01-30-2006, 07:45 PM
Firefox 1.5.
I tried out css for the top row, and lost the bgcolor totally!
Here's the code:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
<html xmlns="http://www.w3.org/TR/xhtml1">
<head>
<meta content="text/html; charset=iso-8859-1" />
<title>
home
</title>
<style type="text/css">
div.c2 {text-align: center}
img.c1 {width: 150px; height: 200px;}
tr.header {bgcolor: #2147fd}
</style>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr class="header">
<td>
<img class="c1" alt="ITWORX" src="itworxfiles/weblogo.jpeg" />
</td>
<td>
<div class="c2">
<h1>
Years of collective experience where the metal meets the meat
</h1>
</div>
</td>
</tr>
<tr bgcolor="8336fa">
<td colspan="2">
<div class="c2">
<h2>
Your one stop shop for IT solutions that work in the real world
</h2>
</div>
</td>
</tr>
<tr bgcolor="6d2fae">
<td width="25%">
<div class="c2">
<p>
Hardware and Software Sales and Installation
</p>
<p>
Internet Jetstream and Wireless Email, Antivirus and Firewalls
</p>
<p>
Troubleshooting
</p>
<p>
Data and Electrical Cabling
</p>
<p>
User Training
</p>
<p>
Networking
</p>
</div>
</td>
<td>
<div class="c2">
<p>
If you're looking for a single desktop or wireless Local Area Net for a large office, we can put together the hardware and software package that best suits you and your staff.
</p>
</div>
</td>
</tr>
</tbody>
</table>
</body>
</html>
Chewie
01-30-2006, 07:52 PM
OK, got that bit fixed. CSS doesn't use bgcolor, it uses background-color. Mea culpa
Added next post***********************************
Ok, now I know I'm missing something obvious. My table doesn't fill a larger screen vertically. I need to get big of the white space around the borders of the table.
Chewie
01-31-2006, 12:44 AM
I've tried to set the overall table attributes in the .css file, but it doesn't seem to work. Now I have got gaps between all my cells. :(
Here's the css:
table.t1
{
width: 100%
border: 0
cellpadding: 0
cellspacing: 0
background: black
}
div.d1
{
text-align: center
}
img.c1
{
width: 150px;
height: 200px;
}
tr.header
{
background: #2147fd
}
tr.subheader
{
background: #8336fa
}
tr.body
{
background: #6d2fae;
color: white
}
a.mail
{
color: red
}
tr.footer
{
background: #141c1e;
color: red
}
added next post**************************
Well, I fixed the missing semi-colons, but I still have black lines between my cells.
*******************************************
Mod note: combined posts in this section
Terminator1138
01-31-2006, 05:04 AM
Can you post your page or take a screenshot of it so I can see exactly what you mean :)
PsychoticDude85
01-31-2006, 07:21 AM
Yeah, or a live link if possible:
Also: PLEASE USE THE EDIT TOOL. I hated reading this topic, so many completely useless posts, by you. Please edit your posts instead of posting 5. It is SERIOUSLY annoying.
Terminator1138
01-31-2006, 07:24 AM
Yeah, or a live link if possible:
Also: PLEASE USE THE EDIT TOOL. I hated reading this topic, so many completely useless posts, by you. Please edit your posts instead of posting 5. It is SERIOUSLY annoying.
be kind there PD85, I agree edit the posts is the best method, but dont say its useless, they are working on it and there may be a reason. Just keep that in mind :)
PsychoticDude85
01-31-2006, 08:05 AM
There may be, but there wasn't. I read those posts, most were 'wait I made a mistake' well if you make a mistake YOU SHOULD EDIT IT IN...
Seriously, I get annoyed by double posts, 5 posts? That goes too far even for me. I don't understand why there are not measures to stop this. Maybe I am over-used to places where forum decency is enforced, but I feel I should be able to say that it annoys me (and most likely anyone else unfortunate enough to read this topic). Since it is common practice to refrain from double posts I must conclude they are either ignorant of that kindness or are arrogant. I do not see any of the latter in the posts so I informed them of what they were doing and why it is frowned upon. Maybe I was aggravated when posting, but it is very rude to act as they did, and I personally do not understand why others on the forum should tolerate it.
Terminator1138
01-31-2006, 08:16 AM
I'm not saying that you should not post what you did, but you stated to that person's post was quite useless, that might be perceived badly and of course as a forum, it can look bad in anyones eyes misreading it etc.
Your post was okay saying its annoying, but a perhaps a better way to ask the person to edit the posts in a kinder and gentler way, without out being borderline rude. As for moderation, I will combine the posts when I get a chance. Not all forums run the same and many have different rules. Moderators and admins are volunteers only where as those forums that have stricter rules have mods that have a personal take into the site. Just a thought is all.
I can point out many posts that are similar or ones that the poster does not come back, but you have to contact Admin because this is not my forum so I have to be modest when it comes to modding. Now, as for the matter at hand, PM me and we can discuss it further, but its getting off topic now.
Thank you.
ALL POSTERS, if you have an unanswered POST in this forum, please edit your post and clean up what you have written to keep the board running smoothly and follow your questions, Thank you.
Term
http://developers.evrsoft.com/forum/announcement.php?f=51&announcementid=28
Chewie
01-31-2006, 10:09 AM
Mea culpa. Sorry folks. Much Homer Simpson-like smacking of forehead. It honestly never occured to me to just edit my posts rather than create new ones.
In my defence, this is the first clear time I've had to focus on this site, and I've had to be really focused to get this much done.
Terminator1138
01-31-2006, 10:13 AM
no problem chewie :) some extra karma for you for your efforts
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.