Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 05-29-2008, 12:41 PM
Junior Member
 
Join Date: 01-24-08
Posts: 5
iTrader: 0 / 0%
trying to quit tables

Hi, I am new to web development and have used tables along with CSS to build a small site before.

I am doing a small club site and I would like to try to not use any tables. This is proving more difficult than anticipated. I would like to have 2 main columns with content and images to the left or right of the content.

At the moment I am finding it hard to accomplish some tasks;
Get the header image centered over the main navigation
Use a larger background image to go behind the login area
Get the pictures to line up correctly with the content
have the lower navigation menu go across the bottom of the page

If anyone could offer any advice or resources, I would greatly appreciate it. I have attached a copy of what I would like the page to look like, as well as what I am trying to accomplish.

I would also like to use includes for the footer, header/main navigation, and large image/login area if applicable.

Thank you in advance to for advice/help.
Attached Thumbnails
trying to quit tables-attempting.jpg   trying to quit tables-current.jpg  
 
Reply With Quote
  #2 (permalink)  
Old 05-29-2008, 01:57 PM
Izzmo's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 11-01-03
Location: Kansas
Posts: 1,356
iTrader: 1 / 100%
You are going to have a hard time doing this. Without tables, currently, you will not get the exact same site cross browser. Tables allow you to design it a little better cross browser though. So, without tables, you might be lost.
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
 
Reply With Quote
  #3 (permalink)  
Old 05-30-2008, 04:57 AM
Foxtrck's Avatar
Contributing Member
 
Join Date: 11-29-06
Location: Scotland, UK
Posts: 238
iTrader: 0 / 0%
Quote:
Originally Posted by Izzmo View Post
You are going to have a hard time doing this. Without tables, currently, you will not get the exact same site cross browser. Tables allow you to design it a little better cross browser though. So, without tables, you might be lost.
Not neccessarily true, css can display correctly cross browser if you know how to use it properly. Tables are not a very good option, probably the easy way out to be honest.

@stjean: search for css layouts/templates there may be some layout templates in css that you can start from, this would be good to help you learn more css as well. Tables become very cumbersome when dealing with complex structures and having tables within tables within tables in a nested structure is not a very good choice for design principles.
__________________
www.dund.co.uk || SEO Professional Scotland

Follow me on twitter: @malcolm_gibb
 
Reply With Quote
  #4 (permalink)  
Old 05-31-2008, 02:14 PM
Izzmo's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 11-01-03
Location: Kansas
Posts: 1,356
iTrader: 1 / 100%
If you use seperate styelsheets for each browser, sure

Every browser interprets CSS differently.
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
 
Reply With Quote
  #5 (permalink)  
Old 05-31-2008, 03:04 PM
HTMLBasicTutor's Avatar
Super Moderator
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 18,265
iTrader: 5 / 100%
Quote:
Originally Posted by Izzmo View Post
If you use seperate styelsheets for each browser, sure

Every browser interprets CSS differently.
Using different stylesheets for each browser is not necessary. If you keep things simple, use standards compliant coding and stay away from hacks one stylesheet will work.

Yes, each browser interprets CSS differently, even different versions of a browser will interpret things differently.

It will take some practice and patience, but you can build a web page without relying on tables for the layout.
__________________

HTML Basic Tutor - Learn how to code for better SEO
Basic Computer Information - Computer & internet basics for website owners

SEO troubleshooting and review services available. - Pm me.
 
Reply With Quote
  #6 (permalink)  
Old 05-31-2008, 03:58 PM
Foxtrck's Avatar
Contributing Member
 
Join Date: 11-29-06
Location: Scotland, UK
Posts: 238
iTrader: 0 / 0%
Quote:
Originally Posted by htmlbasictutor View Post
Using different stylesheets for each browser is not necessary. If you keep things simple, use standards compliant coding and stay away from hacks one stylesheet will work.

Yes, each browser interprets CSS differently, even different versions of a browser will interpret things differently.

It will take some practice and patience, but you can build a web page without relying on tables for the layout.


Exactly, you can make css stylesheets without using imported css for each browser if you follow standards and design to the box model theory.

Sure netscape and some other minor browsers will display your site crap, but who cares about those browsers? It's like designing your site for people without javascript turned on, sorry if you have it turned off or choose to use a non-mainstream browser I don't care and I won't spend hours designing for a tiny minority. The only real scenario you would take total cross-compatibility into mind is if you were designing an application for public sectors i.e. miltary/healthcare/government.

I do though remember a day when you used to have to design several different versions of a site for each browser, basically browser sniffing, CSS changed this and with the right knowledge you can easily create cross-browser sites that display properly.
__________________
www.dund.co.uk || SEO Professional Scotland

Follow me on twitter: @malcolm_gibb

Last edited by Foxtrck; 05-31-2008 at 04:02 PM.
 
Reply With Quote
  #7 (permalink)  
Old 06-02-2008, 04:56 AM
Boogle's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 09-03-07
Location: England
Posts: 649
iTrader: 0 / 0%
The main trick is to keep your CSS as simple as possible and like foxtrck says, make sure you understand the box model theory correctly.

Stick to the basics of CSS and you can make the simple layouts much better than you can with tables.

Boog's
__________________
Price is what you pay... Value is what you get.
 
Reply With Quote
  #8 (permalink)  
Old 06-02-2008, 05:06 AM
Senior Member
Latest Blog:
None

 
Join Date: 02-15-08
Posts: 252
iTrader: 3 / 100%
I'm still trying to learn CSS too. I haven't done overly well so far just very basic layouts. For centering I ussually do this:

width:800px;
margin: 0;

just change the width to what you need.
__________________
Make Money Blogging | Quit Smoking
 
Reply With Quote
  #9 (permalink)  
Old 06-02-2008, 08:07 AM
Izzmo's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 11-01-03
Location: Kansas
Posts: 1,356
iTrader: 1 / 100%
Angry no....

Quote:
Originally Posted by htmlbasictutor View Post
Using different stylesheets for each browser is not necessary. If you keep things simple, use standards compliant coding and stay away from hacks one stylesheet will work.

Yes, each browser interprets CSS differently, even different versions of a browser will interpret things differently.

It will take some practice and patience, but you can build a web page without relying on tables for the layout.
Unfortunately, that is incorrect. I don't want to argue, but it's just not how it works. I strive to be standards compliant in all my websites, and like I said, every browser has it's own compliancy. So, even if you are 100% compliant with W3C standards, it will look different in each browser, depending on what you are doing.
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
 
Reply With Quote
  #10 (permalink)  
Old 06-02-2008, 08:33 AM
Taltos's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 11-22-06
Location: Phoenix, AZ
Posts: 1,795
iTrader: 0 / 0%
Izzmo, I would have to "mostly" disagree with you there. You are usually right on the money but this time you are a bit off. I say mostly because there are some usually very minor differences that can easily be gotten around but in general, CSS can easily be used to get the same look and feel across all the major browsers. I do still include the box model hacks needed for IE6 but those are easy enough to do.

As for centering with CSS, you should try:

margin: 0, auto

This sets top and bottom to 0 and automatically sets equal margins left and right.

Good luck.
__________________
Experimenting
 
Reply With Quote
  #11 (permalink)  
Old 06-02-2008, 09:23 AM
Izzmo's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 11-01-03
Location: Kansas
Posts: 1,356
iTrader: 1 / 100%
Well, this does work in Firefox, sometimes. Once you start getting really CSS heavy in your site and items start to overlap, you can start to run into problems. Even on my hosting site, the most basic elements can sometimes flub. IE or FF.
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
 
Reply With Quote
  #12 (permalink)  
Old 06-02-2008, 09:50 AM
HTMLBasicTutor's Avatar
Super Moderator
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 18,265
iTrader: 5 / 100%
Quote:
Originally Posted by Izzmo View Post
every browser has it's own compliancy.
True. IE being the worse but they are getting better.

Quote:
Originally Posted by Izzmo View Post
So, even if you are 100% compliant with W3C standards, it will look different in each browser, depending on what you are doing.
Yes, even if the coding is compliant, the page can look different in some browsers. e.g. sizing of text, darkness of a line

As far as getting the layout to look consistant from browser to browser, sometimes just being more specific with the properties in your stylesheet will solve the problems. Yes some further tweaking may be required but using hacks is not the solution. e.g. some who used hacks to force IE6 to do what they wanted had broken sites when IE7 came out.
__________________

HTML Basic Tutor - Learn how to code for better SEO
Basic Computer Information - Computer & internet basics for website owners

SEO troubleshooting and review services available. - Pm me.
 
Reply With Quote
  #13 (permalink)  
Old 06-02-2008, 11:59 AM
Izzmo's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 11-01-03
Location: Kansas
Posts: 1,356
iTrader: 1 / 100%
You are correct. Anyone who still tries to get their website to work with IE6 needs to rethink why they are designing a web site
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
 
Reply With Quote
  #14 (permalink)  
Old 06-04-2008, 01:30 AM
Boogle's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 09-03-07
Location: England
Posts: 649
iTrader: 0 / 0%
Quote:
Originally Posted by Izzmo View Post
You are correct. Anyone who still tries to get their website to work with IE6 needs to rethink why they are designing a web site
Although i fully agree with your thoughts on compliancy and all looking differently, we still need to cater for IE6 it's a major browser still because of the numbers using it, for my sites the numbers are roughly,

IE6 - 30%
FF - 30%
IE7 - 30%
Other - 10%

It's a big player, what I do is use a separate stylesheet just for IE6 only because, IE7, FF, Opera, Safari all can be made to look the same quite easily now, IE7 is nearly as good as FF in terms of W3C compliancy.

And also you have to remember, like our systems at Head Office, thin clients don't get to choose what browser they view sites in- they only get what they are given, which at the moment, IE6 still dominates because it's the most safest option for thin-client as it's tried and tested in all areas!

My advice: DO NOT IGNORE IE6 IT IS A MAJOR BROWSER STILL

Boogs
__________________
Price is what you pay... Value is what you get.
 
Reply With Quote
  #15 (permalink)  
Old 06-04-2008, 11:10 AM
Izzmo's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 11-01-03
Location: Kansas
Posts: 1,356
iTrader: 1 / 100%
Only because it comes with XP pre-installed... and people don't know how to update it. It also comes with Windows Server standard too. So, that 30% is very scewed.
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
 
Reply With Quote
  #16 (permalink)  
Old 06-04-2008, 01:59 PM
Boogle's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 09-03-07
Location: England
Posts: 649
iTrader: 0 / 0%
Yes but the facts are there and true, 30% of my visitorsare on IE6. And it's not much extra work if you're a good designer and understand the box model theory. You can avoid much of IE6's disabilities.

Boog's
__________________
Price is what you pay... Value is what you get.
 
Reply With Quote
  #17 (permalink)  
Old 06-06-2008, 10:05 AM
Junior Member
 
Join Date: 01-24-08
Posts: 5
iTrader: 0 / 0%
Thanks for the advice. I actually found a css template that I modified and am able to get the desired overlapping effect that I was looking for. It also helped because I could see how they accomplished it.

Using float: left for items in the left hand column and using another class for the everything in the right hand column they used; position: relative; top: -80 (to position it where it you want)

Thanks again.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Just quit smoking. jasonk1234 Forum Lobby 125 09-18-2009 02:51 AM
psoTFX quit phpBB John Scott Coding Forum 7 12-22-2005 11:50 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 02:13 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.