This is a discussion on "CSS Aligning" within the Web Page Design section. This forum, and the thread "CSS Aligning are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS Aligning
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
CSS Aligning
I'm in the middle of learning css and applying it to the site and I am trying to figure out how I can align to the left, align to the right, to the middle, and how to state the height and the width using css.
I have looked on various sites and all I can seem to find is some info on margins. I'm really new to css and any help would be great. If you could check out my site using the validation checker and explain some of my errors for me and how to correct them that would be fantastic. Wes PS. I maybe being really stupid here, so I apologize |
|
|
|
|||
|
Re: CSS Aligning
Well i know to center a div you have to put this css:
|
|
|||
|
Re: CSS Aligning
Ok, well I'll give it a go thanks. Just need to find out now how to left align, right align, height, and width.
Wes |
|
|||
|
Re: CSS Aligning
Hi Karinne,
It's the same issue with the validator that I was talking about the other week. I have used the strict doctype you suggested and I have begun to edit it to correct the errors and one of the errors that shows up is using text alignment and the height and width of tables. It says I need to use css to get the same the same effect. I need to figure out what code I need to use to align to the left, to the right, to the center, and also the width and height issues. |
|
||||
|
Re: CSS Aligning
Could you post the link again?
|
|
|||
|
Re: CSS Aligning
Do you want to align tables?
|
|
||||
|
Re: CSS Aligning
You need to asign things using CSS. EG:
Instead of
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: CSS Aligning
|
|
|||
|
Re: CSS Aligning
FX Design,
I am talking about everything, not just tables. Text, images, tables, etc. Wes |
|
|||
|
Re: CSS Aligning
jackfranklin,
cheers for that. Were is that written? Is it in the actual stylesheet itself? If so, how to you apply it to the table you want to align? Cheers, Wes |
|
||||
|
Re: CSS Aligning
You add the CSS to the stylesheet. To apply it to all tables, you would just use:
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: CSS Aligning
ok, jack thanks for that. What abou text, and image alignment? I need to know how to do the height and the width for the same.
|
|
||||
|
Re: CSS Aligning
Images can be done using a similar style. To style all images:
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: CSS Aligning
cheers, so let have a go at writing some down and tell me if I'm on the right track
If I wanted to align all tables to the left I would write: table { align: left; } |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Aligning box to right | fr33sty13 | Web Page Design | 8 | Jun 6th, 2008 03:49 |
| Aligning content | fr33sty13 | Web Page Design | 5 | Apr 26th, 2008 14:01 |
| Aligning scrollbars | Ola | JavaScript Forum | 4 | Feb 29th, 2008 16:16 |
| [SOLVED] Aligning to the very top | thewebkid | Web Page Design | 4 | Dec 23rd, 2007 08:48 |
| GD Aligning? | PicoDeath | PHP Forum | 3 | Aug 2nd, 2007 16:14 |