View Full Version : whats wrong with my html?
creedmaniac
30 Jan 2006, 21:13
when i post this in a [ code / code ] it works just fine...but once i leave the code portion out and just plain post it into a new post...it addes like 4-5 pages of gaps and colored cells above the entire table...the table comes out ok at the end of the post....but it just adds tons of colored/blank space above it...
(i tried taking all the spaces out...but i just don't have time to finish at the moment...sorry for the length of the code...)
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
S@NL - BlackBik
30 Jan 2006, 21:42
Just throw your html through this validator (http://validator.w3.org/) and see whats wrong.
Princeton
30 Jan 2006, 23:23
not sure what you mean but...
try removing all spaces between tags ..
eg. (partial code)
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
should all be in one line:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
PS. You code is not valid XHTML.
creedmaniac
31 Jan 2006, 01:12
ok, i've got valid xhtml now...
take a look at this thread to see what it's doing...
post #3...it's obvious what is wrong with it...
http://www.nascarracingworld.com/forum/showthread.php?t=24
also...i don't know why the format of the table is getting all screwed up...i don't see anything wrong with the html...
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
just some advice dont use <font> tags, their going to be phased out eventually. css is the way to go as far as text styling and sizing;)
Princeton
31 Jan 2006, 02:08
that is FAR FROM VALID CODE
please follow instructions on my previous post
creedmaniac
31 Jan 2006, 13:29
ok...first off...the validator you gave me said it was perfect...so what isn't valid about it...and how am I supposed to use CSS attributes in a forum post?...don't you have to have a css file for that?...
i'm not very good at this...could you point out some things that aren't valid code?...
ps...the part about combing things into one line...it works both ways doesn't it? or does it act differently if it's all in one line (i'm not being sarcastic...that is a genuine question)
Princeton
31 Jan 2006, 14:22
To accomplish anything in life you must take small steps.
- if you are adding HTML onto a post (via editor) strip all space(s) between tags not text (everything on one line) ... HTML is enabled on forum
- if BBCODE, use replacements instead
- remove all <font> tags as was previously mentioned
- remove all bgcolor attributes from cells replace with CSS
- use "tcat", "thead", or "tfoot" for table header colors; use "alt1" or "alt2" for cells
NOTE: it is recommend to disable HTML to public
creedmaniac
31 Jan 2006, 16:13
would you mind giving me a simple 2*2 table with a colored header and 1 colored cell just to make sure I understand you correctly?
also...i have my forum set to html is allowed, but only admins are authorized to post html...
creedmaniac
01 Feb 2006, 16:46
- if you are adding HTML onto a post (via editor) strip all space(s) between tags not text (everything on one line) ... HTML is enabled on forum
- if BBCODE, use replacements instead
- remove all <font> tags as was previously mentioned
- remove all bgcolor attributes from cells replace with CSS
- use "tcat", "thead", or "tfoot" for table header colors; use "alt1" or "alt2" for cells
NOTE: it is recommend to disable HTML to public
i don't know CSS...so i don't really know what you are talking about...could you give me an example of how a simple 2*2 or 4*4 table should be coded to display properly in a post?
a very good source can be found here:
www.w3schools.com
creedmaniac
02 Feb 2006, 23:39
ok, i use dreamweaver...so in order to do stuff like this i have to manually edit everything (which i don't do often) i've been reading the above link...but i happen to learn by actually seeing the code than reading stuff about how to do it.
I would really appreciate if someone would take the code below and change it so it will work without flaw if I posted it in a thread on my forum. Once I have an example like that, i can do everything...i just need to see what the actualy code would look like all together...i'll even send ya a few bucks or something if you want me to pay you to do it...
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
S@NL - BlackBik
02 Feb 2006, 23:52
If you put this in a post (I assume you have HTML posting enabled), I think the problem is that the vB page already has a <htlm>, <head> and <body> tag in it.
Maybe that's the problem.
Just use the <table> tags and remove the others.
creedmaniac
02 Feb 2006, 23:55
sorry, i'll edit the above post...i am only using the table tags when i post it
and example of the above code is in post #1
post #2 is the above code with no space between tags, so i figured out it works good like that...but the only problem it still has is it won't be css compliant
http://nascarracingworld.com/forum/showthread.php?p=503#post503
vBulletin® v3.6.12, Copyright ©2000-2009, Jelsoft Enterprises Ltd.