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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| | #1 (permalink) |
| Newbie | 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 |
| | |
| | #2 (permalink) |
| Super Moderator | 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
__________________ Alex Monaghan - Monaghan Consultants Ltd Web hosting, ADSL, IT & Database consultancy Custom Web hosting on UK or USA servers using Linux (cPanel) or Windows (DotNetPanel) Mobile Phone Ringtones, Logos, Java Games & more |
| | |
| | #3 (permalink) |
| Newbie | 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. |
| | |
| | #4 (permalink) |
| Super Moderator | Keep working, CSS is hard when you first pick it up, but once the penny drops, it's actually quite simple
__________________ Alex Monaghan - Monaghan Consultants Ltd Web hosting, ADSL, IT & Database consultancy Custom Web hosting on UK or USA servers using Linux (cPanel) or Windows (DotNetPanel) Mobile Phone Ringtones, Logos, Java Games & more |
| | |
| | #6 (permalink) |
| Newbie | 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;
}
And don't firget to change the background-repeat value into one you desire. |
| | |
| | #7 (permalink) |
| Newbie | 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(来源:注册香港公司网) |
| | |
| Tags |
| centering, stuff, tables |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |