Public Opinion needed

Discuss all aspects of programming here.

Moderator: The Mod Squad

Postby Toby B. » Wed Jan 19, 2005 1:14 pm

No problem Patrick, I appreciate the input very much.... I have been trying to get the jist of XHTML, but I haven't mastered it yet...

As far as the php for the date, thanks for the tip..
Toby B.
Lead Mobo-fu Master
Lead Mobo-fu Master
 
Posts: 14277
Joined: Sun Dec 16, 2001 1:01 am
Location: Maine

Postby Hardware Junkie » Wed Jan 19, 2005 1:20 pm

MoboCop wrote:Dump the java code for the date and use php. Much simpler.


Not sure if that site supports it.
"Imagination is the only weapon in the war against reality." -Jules de Gautier

Image
Hardware Junkie
Mobo-fu Master
Mobo-fu Master
 
Posts: 19405
Joined: Thu Jan 25, 2001 1:01 am
Location: 00000h - 0000Fh

Postby Toby B. » Wed Jan 19, 2005 1:25 pm

Hardware Junkie wrote:
MoboCop wrote:Dump the java code for the date and use php. Much simpler.


Not sure if that site supports it.
Supports PHP, just some is a pain in the ass to figure out...

I just have limited DB space..
Toby B.
Lead Mobo-fu Master
Lead Mobo-fu Master
 
Posts: 14277
Joined: Sun Dec 16, 2001 1:01 am
Location: Maine

Postby MoboCop » Wed Jan 19, 2005 1:25 pm

Toby B. wrote:No problem Patrick, I appreciate the input very much.... I have been trying to get the jist of XHTML, but I haven't mastered it yet...

As far as the php for the date, thanks for the tip..


no problem. xhtml is not that much different from html. Just is a little more strict. Here are some differences.

1) tags must be all lower case <body>

2) Tags must be closed. So if you have a <p> tag you must have a matching </p> - for tags with no closing tag you must do this. <br> becomes <br /> or <hr> becomes <hr />

3) You must have a doctype declaration. There are two main ones to consider xhtml 1.1 transitional or xhtml 1.1 strict - as it sounds the difference is that strict has more rules and is not as forgiving as transitional.

4) there are some parameters and tags that are depreciated in xhtml.

Those are the main differences in xhtml. Not too much.

The main technique to use when moving from table based layouts to css layouts is using the <div> tags. You use them to wrap sections of content. You can then assign an id or class to it and use css to position the box on the screen. This is independent of the order of the code in your html file and therefore you can show your content first in your html file (better for search engines)...

Now getting css and xhtml to work pixel perfect across the 4 major browsers can be tricky but it can be done. The desgin you have currently would lend itself to such a design quite easily.

If I get some time later I will redo your page in xhtml and css so you can see the difference.
Not everything that can be counted counts, and not everything that counts can be counted - Albert Einstien
MoboCop
Drunken Master
 
Posts: 8854
Joined: Tue Jan 18, 2000 1:01 am
Location: Fresno

Postby Toby B. » Wed Jan 19, 2005 1:33 pm

If I get some time later I will redo your page in xhtml and css so you can see the difference.
That would be great..

Thanks..
Toby B.
Lead Mobo-fu Master
Lead Mobo-fu Master
 
Posts: 14277
Joined: Sun Dec 16, 2001 1:01 am
Location: Maine

Postby MoboCop » Wed Jan 19, 2005 1:49 pm

Toby B. wrote:
If I get some time later I will redo your page in xhtml and css so you can see the difference.
That would be great..

Thanks..


On another notes. When referencing images I have always found ./../ stuff to be really a pain in the butt.

You can reference from the html root for example.

I have an images directory off my root. I can reference it directly from any directory as follows.

/images/imagename.jpg

so any file you want to link to in your main root directroy would be

/index.html

if you have another index.html in another directory you can reference it

/otherdirectory/index.html

to me it is much easier to do it this way than try to figure out what all the damn ../../ crap is pointing to.

My method also works when you change servers as long as directory structure does not change. you would not need the base ref in your html files either.

anyway. I am almost done with your page conversion just need to do the css files now.
Not everything that can be counted counts, and not everything that counts can be counted - Albert Einstien
MoboCop
Drunken Master
 
Posts: 8854
Joined: Tue Jan 18, 2000 1:01 am
Location: Fresno

Postby Toby B. » Wed Jan 19, 2005 1:54 pm

You sir are a true coding god!! :P
Toby B.
Lead Mobo-fu Master
Lead Mobo-fu Master
 
Posts: 14277
Joined: Sun Dec 16, 2001 1:01 am
Location: Maine

Postby colinJohn » Wed Jan 19, 2005 2:10 pm

The right text meaning to the right of the image? Thats not supposed to be aligned...


My view, in FF 1.0, shows that when you say:

supported processor...................Athlon XP etc

the two don't align, the Athlon XP etc is on the line below.


as in

supported processor
....................................................Athlon XP etc

all the way down

In IE6 it looks much better; although the two are on seperate lines it looks more like you meant it that way

supported processor
.....Athlon XP etc

I guess you have to view what you've coded in several browsers.....
"that's some catch that Catch 22"
"It's the best that there is"

Image
colinJohn
Black Belt 3rd Degree
Black Belt 3rd Degree
 
Posts: 3430
Joined: Sat Jul 24, 2004 12:34 pm
Location: UK

Postby Toby B. » Wed Jan 19, 2005 2:17 pm

The text you are talking about is supposed to be:
Supported Processors:
{indent}Athlon/AthlonXP/etc

I only have resources for IE6 SP1 right now til I get my other PC up and running. The laptop is having enough trouble coping with whats running.
Toby B.
Lead Mobo-fu Master
Lead Mobo-fu Master
 
Posts: 14277
Joined: Sun Dec 16, 2001 1:01 am
Location: Maine

Postby colinJohn » Wed Jan 19, 2005 2:42 pm

The text you are talking about is supposed to be:
Supported Processors:
{indent}Athlon/AthlonXP/etc


That's the way it looks in IE6 and it's fine.

In Firefox 1.0 it's not fine; sorry, but at least now you know. :cry:
"that's some catch that Catch 22"
"It's the best that there is"

Image
colinJohn
Black Belt 3rd Degree
Black Belt 3rd Degree
 
Posts: 3430
Joined: Sat Jul 24, 2004 12:34 pm
Location: UK

PreviousNext

Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest