Question:
Any Help With This HTML Coding?
AshJ
2008-02-23 20:28:20 UTC
I'm pretty competent with simple coding, and I'm working on an easily manageable website for a client. I cannot find the problem with this coding. I might just be tired or having had looked at it for too long, but...

My content in the second table should be in the middle, with the graphics on the right a lot tighter, in hopes to bring everything more center.

http://www.christopherkrause.com/test.html

Thanks for any advice! :)
Three answers:
Barrett
2008-02-23 21:43:18 UTC
Hi there,



First off you are missing the opening tag.



Second, in your row for your header image you have a colspan="3" but you only have two columns in that table, so it should be colspan="2" instead.



Third, you have an extra closing that needs to be removed directly after the MySpace image. It's right before the closing tag for those two images.



Fourth, in the second table that holds the copyright info you have the closing before the closing so those should be switched around.



Actually, if this was my site I would take the whole copyright section and make it a third row in the 1st table...







© 2008, Unless noted otherwise, all music is © Chris Krause.







And ditch the whole second table.



I think the reason you are having a problem bringing it all in "tighter" is that you have the main table with a width of 800 which I am assuming is the width of your header image. However, the two columns in your table are 135 and 500 which only equals 635. So that overall table measurement is over-riding the widths that you have set for the columns and spreading them out to equal the main table width.



The only way you can avoid that is to resize the header image to "fit" the total plus padding of the column widths which based on the numbers you have in there now should be an overall width of about 641 (2 + 135 + 2 + 500 + 2 = 641).



One other thing.. I think you should add some style="padding:10px;" to all of your tags, except for the header image one, to keep the content from sitting right up on your borders. It will give the whole page a cleaner look.



Good luck with it! Give us a yell if you have any questions or encounter any problems. :)
thisguy
2008-02-23 20:38:49 UTC
I'd put the two pictures inside tags. That's assuming I'm looking at the correct table in question. Otherwise I'm not sure if the table tag recognizes them as child elements, which would mean it wouldn't know to center them.



You may want to look into cascading style sheets rather than using tables for everything. It's completely your call, but they allow you a little more freedom once you understand them.
?
2016-10-25 13:45:27 UTC
there's no code contained in the international that could thoroughly one hundred% avert hacking. There are coding languages that are safer than others. user-friendly HTML is and continually will be hackable. also, there's a restricted volume you may do with user-friendly HTML.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...