Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XHTML questions

Status
Not open for further replies.

GiantDaddY

Programmer
Sep 21, 2001
9
BE
Hi, can any1 help me with these XHTML questions ?

- I want 2 put something on the bottom of my page, in normal HTML I used an empty table with height=xxx to get blank space first, that worked fine, but in XHTML height is not allowed, any1 have an idea 2 this in another way, without having to enter 25 <br>'s ?

- Can I enter JavaScript in a Strict XHTML page, I kept getting error messages, in transitional it gave no errors ?

Please help, thanks very much !!
 
in your CSS use the top:xx; property. you can either use an arbitrary number or use ##px to do a pixel based measurement. top defines how far from the *gasp* top something is. Also make sure you define a position:(relative|static|absolute); for the same item. I can't remember off the top of my head exactly what they do but they are extremely important. Hope this helps! :)
 
As far as I know you should be able to include javascript like this:
<script type=&quot;text/javascript&quot;></script>
 
I forgot to mention it in my last post, but XHTML really likes to see clean and well organized markup. javascript is not markup and so it doesn't want it to be written inline.

you can however do this:

Code:
<script src=&quot;mouseovernav.js&quot; type=&quot;text/jscript&quot;>
	</script>

then all you have to do is call the functions from within your code, which is allowed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top