Now take a look...

M

Mark Parnell


Well, the CSS validates, which is good. A couple of warnings there -
worth fixing up.

The HTML is not valid though, with 16 errors. All fairly trivial to fix
though.

Given that it is a new site, it really should be written using the
Strict doctype, not Transitional. Replace all those presentational
elements and attributes with CSS and make it Strict.

I can't see any need for tables on that page.

What's the applet for? It doesn't show up at all in Firefox.
 
E

Ed Jay

Montgomery BOO...URNS said:
Hello folks:

Well, I have considered all the advice that has been given to me over the
course of the last few months and I broke down and started learning CSS
coding. Take a look at the following website and let me know what, if
anything, can be improved (codewise) here...

http://www.shobers.com/home.htm (still under construction)
I'm just learning this stuff too.

When I use:
<center><div class=xx>stuff</div></center>
and try to validate the page, I get an error message telling me that
<center> is deprecated. But, when I validated your page, I only got the
error that you had no ending tag for your <center><div>...

Where have I gone wrong?

Ed Jay (remove M to respond)
 
E

Els

Ed said:
When I use:
<center><div class=xx>stuff</div></center>
and try to validate the page, I get an error message telling me that
<center> is deprecated. But, when I validated your page, I only got the
error that you had no ending tag for your <center><div>...

Where have I gone wrong?

You haven't gone wrong.
The OP is just using a transitional doctype. That doctype is meant for
documents which are "in transition". It allows for deprecated
elements, to make it easier on the person who is editing the page I
guess :)
New documents are best written in Strict, which doesn't allow for
deprecated heritage from old webpages.
 
E

Ed Jay

Els said:
You haven't gone wrong.
The OP is just using a transitional doctype. That doctype is meant for
documents which are "in transition". It allows for deprecated
elements, to make it easier on the person who is editing the page I
guess :)
New documents are best written in Strict, which doesn't allow for
deprecated heritage from old webpages.

Thanks, although I don't know if I feel better. :)

I'm having a heck of a time figuring out how to center text or boxes.

Ed Jay (remove M to respond)
 
M

Montgomery BOO...URNS

Hello folks:

Well, I have considered all the advice that has been given to me over the
course of the last few months and I broke down and started learning CSS
coding. Take a look at the following website and let me know what, if
anything, can be improved (codewise) here...

http://www.shobers.com/home.htm (still under construction)

Thanks for all of your help. It's been greatly appreciated.

DC
 
E

Ed Jay

Mark Parnell said:

Thanks, Mark. That was a great help.

Allow me to impose and ask another question. I'm trying to center a box
with text aligned both left and right. Example:
Test1 Test2

I defined a simple box as:

..menu {
border: 1px solid black;
margin-left: auto;
margin-right: auto;
width: 300px;
}

The code on my page is:

<div class=menu style="text-align: left;">Test1<div
style="text-align:right;">Test2</div></div>

The result is:

Test1
Test2

Why?

Ed Jay (remove M to respond)
 
E

Els

Ed said:
Thanks, Mark. That was a great help.

Allow me to impose and ask another question. I'm trying to center a box
with text aligned both left and right. Example:
Test1 Test2

I defined a simple box as:

.menu {
border: 1px solid black;
margin-left: auto;
margin-right: auto;
width: 300px;
}

The code on my page is:

<div class=menu style="text-align: left;">Test1<div
style="text-align:right;">Test2</div></div>

The result is:

Test1
Test2

Why?

Because ...
Well, add a visible border to each div, and you will know :)

To make it work, you should float the first one left, and give it 50%
width (probably a bit less to make it work in other browsers too), and
give the second one a left margin of 50%.
 
E

Ed Jay

Els said:
Because ...
Well, add a visible border to each div, and you will know :)

To make it work, you should float the first one left, and give it 50%
width (probably a bit less to make it work in other browsers too), and
give the second one a left margin of 50%.

Thank you again. I'm going to have to translate what you've said into code
I understand, but it's 1:30AM and I can't focus my eyes any longer. It's
obviously past my bedtime. :)

Thank you.

Ed Jay (remove M to respond)
 
E

Els

Ed said:
Thank you again. I'm going to have to translate what you've said into code
I understand, but it's 1:30AM and I can't focus my eyes any longer. It's
obviously past my bedtime. :)

You're in Australia? (or Japan?) Go to bed! The European crew will
take over from here, your turn will come again ;-)

Sleep well :)
 
R

rf

Els said:
You're in Australia? (or Japan?) Go to bed! The European crew will
take over from here, your turn will come again ;-)

What? The wife would say "What the bloody hell do you think YOU are up to?".

It's only 7pm here in .au. We aren't even on to our second rum&coke.
Sleep well :)

In a couple or 5 hours, yes :)

Cheers
Richard.
 
E

Els

rf said:
What? The wife would say "What the bloody hell do you think YOU are up to?".

What, she won't let you go to bed early when you're tired? ;-)
It's only 7pm here in .au. We aren't even on to our second rum&coke.


In a couple or 5 hours, yes :)

Okay, so I was too lazy to look up Day Light Saving zones for
Australia to see if 9 hours difference with me would be far away
enough to be Australia...
Thinking again: it's summer here, so it must be winter where you are,
so the Day Light Saving adds two hours to the 'normal' time
difference, instead of subtracting them.

/looks up timetable with DLS times...

Right! Phoenix, Arizona is closer to the 9 hrs difference...
<thought dawning on me>
I guess I also was calculating in the wrong direction - Aussiland is
ahead of us, not behind us.. (which doesn't make matter when the time
difference is 12 hours, but it does when it is 9 hours <g>)
</>
 
R

rf

Els said:
to?".

What, she won't let you go to bed early when you're tired? ;-)

Er, she was *in* it at the time, having a power nap before dinner.

Thinking again: it's summer here, so it must be winter where you are,

Not that you would notice. A balmy 22 degrees here today.
I guess I also was calculating in the wrong direction - Aussiland is
ahead of us, not behind us..

Australia is ahead of Everybody (except .nz of course but they don't count
:) )

Makes it easier for us. Everybody else is behind. .uk 10 (UTC that is), .nl
9 .us somewhere between 18 and infinity...

Cheers
Richard.
 
E

Els

rf said:
Er, she was *in* it at the time, having a power nap before dinner.

LOL - that explains her reaction perfectly, yes :)
Not that you would notice. A balmy 22 degrees here today.

I wish we had winters like that :\

[time zones]
Everybody else is behind. .uk 10 (UTC that is), .nl 9

See? I wan't wrong about the 9 hours, just about the direction :)
.us somewhere between 18 and infinity...

Makes me wonder: how come the USA haven't managed to turn the tables
and make themselves be first timewise... :)
 
E

Edwin van der Vaart

Els said:
Why not? I don't mind heat.
In the northern/southern part is the it about 30 degrees.
In central it's about 40 degrees in the shadow (Cooper pedy).
 
R

rf

Edwin said:
In the northern/southern part is the it about 30 degrees.
In central it's about 40 degrees in the shadow (Cooper pedy).

But... nobody goes out there :)

Here in Sydney its usually 30. Rarely above 40, well, 45.

Anyway, in the outback a 45 degree day is not so bad as it is usually 0%
humidity. Not like on the coast where a 38 degree 90% humiditiy day calls
for a pause in work and drinks all round...

Cheers
Richard.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top