My tableless coding

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 19th, 2006, 18:46
Reputable Member
Join Date: May 2006
Location: Scotland
Age: 18
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

  #2 (permalink)  
Old Jul 19th, 2006, 21:06
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
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)
Reply With Quote
  #3 (permalink)  
Old Jul 19th, 2006, 21:08
Reputable Member
Join Date: May 2006
Location: Scotland
Age: 18
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
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 .
Reply With Quote
  #4 (permalink)  
Old Jul 19th, 2006, 21:10
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
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)
Reply With Quote
  #5 (permalink)  
Old Jul 19th, 2006, 21:13
Reputable Member
Join Date: May 2006
Location: Scotland
Age: 18
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #6 (permalink)  
Old Jul 19th, 2006, 21:23
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
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?
Reply With Quote
  #7 (permalink)  
Old Jul 19th, 2006, 21:24
Reputable Member
Join Date: May 2006
Location: Scotland
Age: 18
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
Re: My tableless coding

Thats put by my host, not me therefore comes atfter the html.
Reply With Quote
  #8 (permalink)  
Old Jul 20th, 2006, 13:19
Up'n'Coming Member
Join Date: Jul 2006
Location: poole
Age: 26
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
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>
Reply With Quote
  #9 (permalink)  
Old Jul 20th, 2006, 15:35
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 24
Posts: 1,347
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to minute44
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)
Reply With Quote
  #10 (permalink)  
Old Jul 20th, 2006, 17:16
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
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)
Reply With Quote
  #11 (permalink)  
Old Jul 20th, 2006, 22:27
Reputable Member
Join Date: May 2006
Location: Scotland
Age: 18
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #12 (permalink)  
Old Jul 21st, 2006, 14:12
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
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.
Attached Images
File Type: jpg screenshot.jpg (147.2 KB, 66 views)
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #13 (permalink)  
Old Jul 21st, 2006, 18:40
Reputable Member
Join Date: May 2006
Location: Scotland
Age: 18
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
Re: My tableless coding

Yes that was the problem. Its been fixed now.
Reply With Quote
Reply

Tags
tableless, coding

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 22:02.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43