This is a discussion on "My tableless coding" within the Web Page Design section. This forum, and the thread "My tableless coding are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
My tableless coding
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
My tableless coding
Okay i had a go at tableless coding. The website should look like www.intelligent-studios.co.uk except without the content:
www.intelligent-studios.co.uk/tableless.html I checked on validator and it comes up with errors that the div tags do not have ending tags, but if i add the ending tags to the end of the document before the end of the body it still doesnt work. I don't know how to sort that. Also on the site there appears to be a white line above the content and things are out of line, i don't know why. |
|
|
|
#2
|
|||
|
|||
|
Re: My tableless coding
You have to close the div tags in the right places. Only thing I can think of.
<div id="foo"> <div id="poo"> </div> <-- closes poo </div> <-- closes foo
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#3
|
|||
|
|||
|
Re: My tableless coding
Surely if I added the tags to the end of the body tag then that would close them, but it doesn't .
|
|
#4
|
|||
|
|||
|
Re: My tableless coding
If the layout is breaking when you close the div tags that means something is in the wrong place.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#5
|
|||
|
|||
|
Re: My tableless coding
well im not too sure about that but if you go to a validator site it shows the errors which i don't know how to fix.
|
|
#6
|
|||
|
|||
|
Re: My tableless coding
I think it's your <div id='wrap'> that doesn't have a closing div. Your code would be a lot easier to figure out if it was properly indented so you could see where sections started and finished. What's with all the code after the closing </html> tag? |
|
#7
|
|||
|
|||
|
Re: My tableless coding
Thats put by my host, not me therefore comes atfter the html.
|
|
#8
|
|||
|
|||
|
Re: My tableless coding
it is good practice to ALWAYS add notes to div tags. it will save you so much time when something isn't working. as you will see on your site, there are so many /div tags its impossible to know which one closes what tag. if you do it like this, you will always know which closing tag is which, and you can easily read through the page to see if you've missed one:
<div id="test"> <div id="test2"> <!-- end of test2 --> </div> <!-- end of test --> </div> |
|
#9
|
||||
|
||||
|
Re: My tableless coding
I wouldn't comment it exactly like that edd but you do have a good point.
It's always a good idea to put comments in crucial places within your code so human eyes can read through it with ease. For example mark where the header starts and ends and where the navigation starts and ends... These areas can contain more than one div but they still make the code easier to read.
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
|
|
#10
|
|||
|
|||
|
Re: My tableless coding
Commenting is good, it also really helps when you haven't touched a site for a while and have to jump back into the code.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#11
|
|||
|
|||
|
Re: My tableless coding
I have redesigned the site in css. It looks okay apart from the 2 template pages. Can someone tell me why middle div tag has jumped down below the other column in IE but not in firefox where it works properly:
Problem page = http://www.intelligent-studios.co.uk/clantemplates.html |
|
#12
|
|||
|
|||
|
Re: My tableless coding
IE sometimes will push an element below the floated one due to width or something. I don't have my laptop with me so my trouble shooting atm is a bit limited on this box I am on.
Also there is an extra period in #templateleft { float:left; width:197.px; } should be #templateleft { width:197px; } Attached is a screenshot with your layout structure dont know if it will help or not.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#13
|
|||
|
|||
|
Re: My tableless coding
Yes that was the problem. Its been fixed now.
|
![]() |
| Tags |
| tableless, coding |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I am a <div> at coding | DregondRahl | Web Page Design | 8 | Jun 7th, 2007 13:02 |
| Is your site tableless? | Varitek | Web Page Design | 14 | Nov 30th, 2006 08:22 |
| CSS Tables vs Tableless | Finchwizard | Web Page Design | 19 | Aug 1st, 2006 12:58 |
| CSS TableLess | madeinacari | Web Page Design | 1 | Apr 21st, 2006 16:26 |
| Tableless CSS Troubles | Angel | Web Page Design | 3 | Mar 18th, 2006 12:31 |