"GTalbot" <ne*******@gtalbot.orgwrote in message
news:4c**********************************@79g2000h sk.googlegroups.com...
On 13 juin, 14:14, "Candoer" <vze2s...@verizon.netwrote:
I am new to both HTML and CSS. Several months ago my High School Alumni
association web master died and they asked me to take over the web site. I
had never worked with CSS but had some experience with HTML. The site was
written strictly using HTML and had no CSS. So I decided to take on the
task to convert it using CSS. For the past three months I have been
lurking on this group and trying my best to absorb your suggestions to
others and adhering to them in my switch over of the web site from plain
HTML to CSS. (Understand this is a limited audience web site in that it
gets less than 30 viewers a day.)
My statistics show that 50 percent of my users use IE 7, 15 percent use
Opera, 15 percent use Safari, 19 percent use Firefox, 6 percent use IE6
and the others use various others.
I have gone up on W3C.org and tested my html and css.
Good!
It passed the CSS in that it has no errors, but several warnings (that I
don't understand). The html also has one or two errors - one that will
always be there.
Good... but
On line 22
<img src="images/bison9t1.gif" alt="The Thundering Herd" border="0"
height="128" width="150" hsrc="images/flbhslogo.gif">
just remove the "h": it should be src, not hsrc
There is no need to declare border="0" as img by default do not have a
border. border="0" may make sense if it's a clickable-reactive image.
<centercan be replaced with either style="margin-left: auto; margin-
right: auto;" if the element to horizontally center is a block-level
element. If it's an inline element, then use style="text-align:
center;". For interactive demo of this:
CSS Horizontal alignment:
when to use margin-left, margin-right and when to use text-align
http://www.gtalbot.org/NvuSection/Nv...Alignment.html
That code of yours:
<td width="25%">
<div>
<center><img src="images/flbhslogo.gif" border="0"
alt="The Thundering Herd" height="128" width="150" hsrc="images/
bison9t1.gif"></center>
</div></td>
can be replaced more efficiently with
<td>
<img src="images/flbhslogo.gif" alt="The Thundering Herd" height="128"
width="150" src="images/bison9t1.gif"></td>
and by using <col>
and
col {width: 25%;}
so that way you can remove all of the width="25%" attribute
specification in each cells.
I glanced in your code and I think you need to know how to replace
efficiently all those <centerelements.
>
I did not use a strict doctype as you all prefer. Hopefully if I ever get
good enough with this I will switch to strict.
The site is located at: www.bisonalitiesagain.com/bisonindex.html and the
css is located at:www.bisonalitiesagain.com/bison.css
Here is my main problem. On the page bisonindex.html and xindex.html I
have menus. On bisonindex it is a list of dates that jumps you within the
page to information posted on that day. On xindex.html it is the main menu
that takes you to various pages throughout the site. It displays and looks
exactly like I want it to on Exploder 7.0 (ain't that a hoot), Safari
3.1.1, Navigator 9.0.0.6, Flock 1.2.1, Firefox 2.0.0.14 and Seamonkey
1.1.9 but fails badly on Opera 9.27 and 9.50.
Please describe the word "badly" because over here, Opera 9.50 build
10063, the menu looks just like in Firefox 3 and in Internet Explorer
8 beta 1. Hovering the mouse cursor over the links and the background
color changes and a small "advance" or "go" image appears.
Regards, Gérard
Gerard
I forgot to add the following to my last response:
I don't know if you noticed but the menu pages both have a picture of a
brown "Bison" on them. This was the symbol of the sports teams when I went
to that school in the 50's. In the 80's they changed the Bison symbol to a
blue Bison. If you move your mouse over the Brown Bison it turns to the
Blue Bison. The script to do that was given to me by a friend. The "hsrc"
is the only way that script works. If you change it to src the mouse over
does not work.
Again, Thanks for your suggestions and comments. I really appreciate them!
CANDOER cat