I don't like xhtml

They have: 5,633 posts

Joined: Jan 1970

As of right now I think html is better than xhtml. Sad
Proublem....
http://www.bja888.com
How am I supposed to have a Iframe that stretches verticaly? I love bja888.com because it would stretch and worked on any OS, any browser. Now I cant quite figure how to re-deign it in xhml.

You cant see the new version till its all finished Laughing out loud.

Busy's picture

He has: 6,151 posts

Joined: May 2001

XHTML is just HTML done properly (all closed tags and in lower case)

bja888.com has no DOC tag and has capital tags, are you trying to do it in strict or transitional ?

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Busy's right. This isn't xhtml: There's no DTD, and some of the tags are uppercase. You seem to be using tables for layout... But let's not have that argument again, well actually this would be fine if you're using a Transitional DTD Smiling

[edit]
And this isn't allowed if you use a strict DTD either:
target="_blank"
[/edit]

a Padded Cell our articles site!

Roo's picture

She has: 840 posts

Joined: Apr 1999

No that isn't XHTML. To use an iframe you'd need to use XHTML transitional.

Reason to learn and use valid XHTML:
It won't let you make mistakes. Leave out one quote mark or one closing tag and watch what happens....it throws errors all over the page, and sometimes the page won't even display at all. Which is GOOD! It forces you to write good, clean, compliant code.

Roo

They have: 5,633 posts

Joined: Jan 1970

No that isn't the xhtml version online. The xhtml version in on my computer. It has simalar structure though. I nuderstand the rules of xhtml but dident know you can't use "_blank" any more. Sad

From what I understand though... xhtml Isnt very friendly to hight values especially a %. I give it a 100% value and its 1px in IE and 200px in FireFox. Where as I want it to fill the page.

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

100% height doesn't make any sense anyway - 100% of what? Of the page or of the browser window?

I use "_blank" anyway sometimes. The people I work with have this thing with things opening in new windows Roll eyes Although the system we have now doesn't even have a doctype (outside of our control) so it doesn't matter as much.

They have: 5,633 posts

Joined: Jan 1970

Well, just like the current bja888.com the new one has no body content other than the Iframe. The menus are positioned. So I want it to be 100% of the window.

Busy's picture

He has: 6,151 posts

Joined: May 2001

Why use an iframe at all?
why not use CSS and fix the side content

a height hack:

make a table 1000x1200 and place between body tags with all your content inside the table

now you can use height = 100% as it has something to go against, sadly your layout will look crap as it wont be browser friendly in dimensons.
Also if you use a fixed size table or sometimes div after that and then use a percentage width you may find the percentage is going off the fixed width rather than the orginal main table - reason why fixed and percentages should not be mixed.

They have: 5,633 posts

Joined: Jan 1970

well... I guess I will have to make the layout work page by page, do away with the whole Iframe idea Sad Which means longer load time Sad It would seem every little trick and technique I learned in html has been eliminated in xhtml. I like the new syntax rules but hate the poor positioning.

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

How does an iframe mean shorter load time? It still has to load all the content within the iframe.

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

I think his point is that the iframe page is loaded the first time it's requested then on subsequent pages the browser can use the sub-page from its cache.

If you use repeat content across pages the browser will alway have to download that page, including the repeated content again.

a Padded Cell our articles site!

They have: 5,633 posts

Joined: Jan 1970

Useing the current technique I load about 100 lines less on each page. Hey, its the internet every second counts.

Busy's picture

He has: 6,151 posts

Joined: May 2001

For what it's worth your site loaded pretty fast for me and I'm on dialup, so adding a couple for milli-seconds wont hurt

They have: 5,633 posts

Joined: Jan 1970

Well I know that version loads well. It looks like crap too. The new one will be nice though!

demonhale's picture

He has: 3,278 posts

Joined: May 2005

Dang Ive been working out on xhtml transitional, and its really quite difficult, ill be patient though...

Busy's picture

He has: 6,151 posts

Joined: May 2001

XHTML transitional = basic tidy HTML
XHTML Strict = half selective HTML, half CSS *a decent strict site can not be done with (x)HTML alone*

They have: 5,633 posts

Joined: Jan 1970

I have 1/2 a mind to start my own Hyper Text Language.

HTPL
Hyper
Text
Postioning
Language

They have: 5,633 posts

Joined: Jan 1970

Yes you can make a website in xhml without the use of CSS but if you want to add color or font styles you need to.

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Busy wrote: *a decent strict site can not be done with (x)HTML alone*

What does this mean exactly? That you have to use CSS (if so, I'm in agreement - just wanting to clarify)?

a Padded Cell our articles site!

Busy's picture

He has: 6,151 posts

Joined: May 2001

JeevesBond wrote: What does this mean exactly? That you have to use CSS (if so, I'm in agreement - just wanting to clarify)?

Yes, as XHTML is not CSS. *should we tell anyone we actually agree?*

He has: 388 posts

Joined: Apr 2005

You could but IE mould never support it Smiling

They have: 5,633 posts

Joined: Jan 1970

If I ever get time/money I will seroiusly consider it. My current desktop focus is on a better clipboard tool.

He has: 388 posts

Joined: Apr 2005

You can alredy make your own markup language with xml i think.

Busy's picture

He has: 6,151 posts

Joined: May 2001

Note I did say decent site Wink

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Why reinvent the wheel? CSS positioning works just fine.

They have: 5,633 posts

Joined: Jan 1970

Renegade wrote: Why reinvent the wheel? CSS positioning works just fine.

I do not agree. The biggest proublem I am haveing with css postioning is that you can define where an object should be relative to the parent object.

Absoulte postioning starts at the top right conrner of the screen and relative postioning just moves it from where it would normally be.

There should also be a way to align one object to the left and the other one to the right in the same parent object.

I'm sure I can think of more, that's just for starters.

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Busy wrote: *should we tell anyone we actually agree?*

LOL - definately not! Laughing out loud

I second that motion Renegade.

chrishirst's picture

He has: 379 posts

Joined: Apr 2005

bja888 wrote: I do not agree. The biggest proublem I am haveing with css postioning is that you can define where an object should be relative to the parent object.

Absoulte postioning starts at the top right conrner of the screen and relative postioning just moves it from where it would normally be.

What more do you need ? Static leaves the element in the normal flow, Relative will move the element relative to the parent and absolute is out of the flow and exactly where you specify. Unless you want an absolutely positioned element that is relative to other elements, which would be a contradiction in terms.
Actually absolute is the top left corner of the browser viewport

bja888 wrote: There should also be a way to align one object to the left and the other one to the right in the same parent object.

There is.

float: left|right|none W3Schools

Chris

Indifference will be the downfall of mankind, but who cares?
Venue Capacity Monitoring
Code Samples

They have: 5,633 posts

Joined: Jan 1970

chrishirst wrote: Relative will move the element relative

Relative moves the element from where is would normally appear.

chrishirst wrote: Actually absolute is the top left corner of the browser viewport

Thank you, I diden't notice I put right insted of left.

chrishirst wrote: float: left|right|none W3Schools

I still yet to understand/use float but I know it wont help form everything I've read.

I'll have some samples of what I am talking about shortly.

demonhale's picture

He has: 3,278 posts

Joined: May 2005

Right On Chris!

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Correct me if I'm wrong but, isn't absolute positioning, absolute to it's parent?

demonhale's picture

He has: 3,278 posts

Joined: May 2005

If it is contained in a parent div, if not absolute with resprect to the page...

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.