Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Now take a look...

Reply
Thread Tools

Now take a look...

 
 
Mark Parnell
Guest
Posts: n/a
 
      08-18-2005
Previously in alt.html, "Montgomery BOO...URNS" <>
said:

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


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.

--
Mark Parnell
http://www.clarkecomputers.com.au
alt.html FAQ :: http://html-faq.com/
 
Reply With Quote
 
 
 
 
Ed Jay
Guest
Posts: n/a
 
      08-18-2005
"Montgomery BOO...URNS" <> wrote:

>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)
 
Reply With Quote
 
 
 
 
Els
Guest
Posts: n/a
 
      08-18-2005
Ed Jay wrote:

> "Montgomery BOO...URNS" <> wrote:
>
>>http://www.shobers.com/home.htm (still under construction)

>
> 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.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
 
Reply With Quote
 
Ed Jay
Guest
Posts: n/a
 
      08-18-2005
Els <> wrote:

>Ed Jay wrote:
>
>> "Montgomery BOO...URNS" <> wrote:
>>
>>>http://www.shobers.com/home.htm (still under construction)

>>
>> 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.


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)
 
Reply With Quote
 
Mark Parnell
Guest
Posts: n/a
 
      08-18-2005
Previously in alt.html, Ed Jay <> said:

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


http://dorward.me.uk/www/centre/

--
Mark Parnell
http://www.clarkecomputers.com.au
alt.html FAQ :: http://html-faq.com/
 
Reply With Quote
 
Montgomery BOO...URNS
Guest
Posts: n/a
 
      08-18-2005
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


 
Reply With Quote
 
Ed Jay
Guest
Posts: n/a
 
      08-18-2005
Mark Parnell <> wrote:

>Previously in alt.html, Ed Jay <> said:
>
>> I'm having a heck of a time figuring out how to center text or boxes.

>
>http://dorward.me.uk/www/centre/


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)
 
Reply With Quote
 
Els
Guest
Posts: n/a
 
      08-18-2005
Ed Jay wrote:

> Mark Parnell <> wrote:
>
>>Previously in alt.html, Ed Jay <> said:
>>
>>> I'm having a heck of a time figuring out how to center text or boxes.

>>
>>http://dorward.me.uk/www/centre/

>
> 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%.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Various Artists - Cinema -Sharon Lifshitz
 
Reply With Quote
 
Ed Jay
Guest
Posts: n/a
 
      08-18-2005
Els <> wrote:

>Ed Jay wrote:
>
>> Mark Parnell <> wrote:
>>
>>>Previously in alt.html, Ed Jay <> said:
>>>
>>>> I'm having a heck of a time figuring out how to center text or boxes.
>>>
>>>http://dorward.me.uk/www/centre/

>>
>> 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%.


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)
 
Reply With Quote
 
Els
Guest
Posts: n/a
 
      08-18-2005
Ed Jay wrote:

> Els <> wrote:
>
>>Ed Jay wrote:
>>
>>> Mark Parnell <> wrote:
>>>
>>>>Previously in alt.html, Ed Jay <> said:
>>>>
>>>>> I'm having a heck of a time figuring out how to center text or boxes.
>>>>
>>>>http://dorward.me.uk/www/centre/
>>>
>>> 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%.

>
> 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

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Various Artists - War Sane - Tango
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do people who take CCNA or MCSA also take A+ certification exam? Win.Tin.Mar@gmail.com MCSE 18 04-11-2008 03:46 PM
Do I have to take 292 & 296 can I take the 4 cores instead? =?Utf-8?B?SmltIEhvbGxvd2F5?= Microsoft Certification 6 06-02-2007 02:12 AM
Take a slow ride....take it eeee-zy ellis_jay Computer Support 0 08-25-2005 01:31 AM
Re: Doesn't Take Much To Take Over A Group Soapy Digital Photography 59 09-13-2004 05:55 AM
Do I have to take MS courses in order to take the exams? Ionut Marin MCAD 1 02-09-2004 02:24 PM



Advertisments
 



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