UK Webmaster Talk - Online Marketing - SEO


 

tables, centering, other stuff

This is a discussion on tables, centering, other stuff within the HTML, DHTML and CSS forums, part of the Programming / Scripting / Coding category; Good evening ladies, gents and everyone else :-p I am new to the forum (check the start date ) anyway ...


Go Back   UK Webmaster Talk - Online Marketing - SEO > Website Design & Development > Programming / Scripting / Coding > HTML, DHTML and CSS

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices

Reply

 

LinkBack Thread Tools Display Modes
Old 03-12-2005, 00:47   #1 (permalink)
Newbie
 
Join Date: Dec 2005
Posts: 9
iTrader: 0 / 0%
JsPLACEwebby is an unknown quantity at this point
Default tables, centering, other stuff

Good evening ladies, gents and everyone else :-p

I am new to the forum (check the start date )

anyway i have a problem...a very long winded multisectional problem.

I want to build a site that has its basic content centered much like this forums centered, i have been told to use tables...i have tryed using tables, tables with css and everything else but i cant get the darn thing to sit at the tip top of the page (iow in css being top:0px; ) but when i do that my table is no longered centered and if i go and center it its no longer at the 0px mark.

also i dont really want to use tables since someone told me that xhtml doesnt use tables in any form meaning that i have to use css to align everything within this one area....

i have only been doing this for erm....1 and a half years (college course) and i am pretty good at html and css for a beginner but i think i need all the help i can get *laughs*

thanks in advance (i will clarify anything that doesnt make sence (apart from me) )

J
JsPLACEwebby is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-12-2005, 12:20   #2 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,026
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

Create a container <DIV> for the page, you then want to create your content <DIV>'s within this container. If you position: relative then all should line up.

I'd suggest HTML Utopia: Designing Without Tables Using CSS from www.sitepoint.com you can get a selection of chapters via PDF prior to purchase. Also have a look over the site as it has a good selection of CSS stuff to learn from.

Tables are the best way to layout tabular data, however I never got on with embedded tables within tables for site layout. CSS is definately the way to go, but it takes a bit of getting you head round.

PS I hope it wasn't your college tutor suggesting using tables for layout
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-12-2005, 17:55   #3 (permalink)
Newbie
 
Join Date: Dec 2005
Posts: 9
iTrader: 0 / 0%
JsPLACEwebby is an unknown quantity at this point
Default

it was actually....but i have changed colleges

i was in the Glasgow College of Nautical Studies...doing HNC MULTIMEDIA COMPUTING: Web Development and the SL (senior Lecturer) said that we shouldnt use tables unless we absolutly have to because of xhtml and to keep the sites as compatible with new versions as is possible.

i'm now in Langside College doing HND (because the nautical threw me out because i didnt complete one unit, FOOLS!! ) and the first thing nearly that was said on the third day i was there was "if it was me i'd put it into a table and align it center"...lol

im getting use to css its quite easy when you know how it works but as i said i'v only been at this, seriously for 1.5 years and obviously im going to need to put alot more years under my belt before i can call myself a professional :p

thanks for the help though

J.
JsPLACEwebby is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-12-2005, 18:12   #4 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,026
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

Keep working, CSS is hard when you first pick it up, but once the penny drops, it's actually quite simple
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-12-2005, 21:14   #5 (permalink)
Newbie
 
Join Date: Dec 2005
Posts: 9
iTrader: 0 / 0%
JsPLACEwebby is an unknown quantity at this point
Default

i'll agree with that...i just need to understand the position:absolute, relitive and static "tag" or attribute...but once that happens i think i will be fine.


J
JsPLACEwebby is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-11-2006, 16:21   #6 (permalink)
Newbie
 
Join Date: Nov 2006
Posts: 4
iTrader: 0 / 0%
frofi is an unknown quantity at this point
Default

Who said you need tables at all? lol
The idea with div containers is to be able to exactly place whatever you need where ever you want it. If you're still new to CSS, just put this at the beginning of your style sheet:

Code:
body, body * {
			position: relative;
			margin: 0px;
			padding: 0px;
			background-repeat: repeat-x;
			}
This will ensure you a full control of margins and padding in any browser. Then use absolute positioning for your containers. That way they will not collide with each other. Once you've learned how to use relative positioning, you'll be using absolute less and less.
And don't firget to change the background-repeat value into one you desire.
frofi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20-05-2008, 10:42   #7 (permalink)
Newbie
 
Join Date: May 2008
Posts: 2
iTrader: 0 / 0%
dreamath is an unknown quantity at this point
Lightbulb Ata Profile

ATA GROUP is privately owned trustee and corporate services group with offices in Hong Kong, Kuala Lumpur, USA, Singapore, the British Virgin Islands, Samoa, Beijing, Shanghai, Hangzhou and Shenzhen. We are staffed by a professional team of lawyers, accountants and consultants with a wealth of experience both in their respective professions as well as specifically in the offshore industry. Our operational offices around the world is more than 120,000 square kilometers. This combination of offices and expertise enables ATA to provide an exceptional portfolio of quality services to a global client base(来源:注册香港公司网)
dreamath is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
centering, stuff, tables

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

Similar Threads

Thread Thread Starter Forum Replies Last Post
Wanted: Specific Stuff Departed Sales/Auctions 9 01-08-2005 15:28
Auction - WebMasters Stuff KF1 General Webmaster Discussion 4 17-07-2005 14:07
Centering a page FrozenDice Website Development Forum 2 15-07-2005 17:42
Mad stuff robertall Search Engine Optimisation (SEO) 4 23-04-2005 12:01
VoIP, SIP and all that stuff! HostYorkshire General Webmaster Discussion 5 10-04-2005 02:18


All times are GMT +1. The time now is 14:42.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
UK Webmaster Forum © WebmasterTalk.co.uk | Design by Forbairt

Ad Management by RedTyger

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