| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: May 2005 Location: Northern Ireland
Posts: 755
![]() ![]() | Centering an Image Using CSS How do you center an image using CSS? Thanks in advance.
__________________ A young web developer’s journey to financial freedom - aaronfalloon.com
Last edited by ComDriver; 02-23-2006 at 10:05 AM.
|
| |
| | THREAD STARTER #4 (permalink) |
| NamePros Regular Join Date: May 2005 Location: Northern Ireland
Posts: 755
![]() ![]() | I read somewhere were that wasn't the recomended way, is there any other methods?
__________________ A young web developer’s journey to financial freedom - aaronfalloon.com |
| |
| | #6 (permalink) |
| A Wealth of Knowledge Join Date: Aug 2004
Posts: 3,803
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | What other method with CSS is there? You can either use css in the header of your file, an external style sheet, or, within an image tag directly in its CSS "style" attribute. I use the first two regularly, but the third is not my favorite. -Steve |
| |
| | #7 (permalink) |
| NamePros Regular Join Date: Feb 2006 Location: Atlanta, GA, USA
Posts: 335
![]() ![]() | Here's a one I found using The Anointed One. I haven't tested it myself, so it may or may not work. Code: <div style="text-align: center;"> <div style="text-align: left; margin: 1em auto; width: 50%;"> </div> </div> |
| |
| | THREAD STARTER #8 (permalink) |
| NamePros Regular Join Date: May 2005 Location: Northern Ireland
Posts: 755
![]() ![]() | Thanks for the help guys, only the first method seems to be working. Thanks again.
__________________ A young web developer’s journey to financial freedom - aaronfalloon.com |
| |
| | THREAD STARTER #10 (permalink) |
| NamePros Regular Join Date: May 2005 Location: Northern Ireland
Posts: 755
![]() ![]() | I don't think thats using CSS but thanks anyway.
__________________ A young web developer’s journey to financial freedom - aaronfalloon.com |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Greatest Image Gallery Tutorial Ever | Wybe | Webmaster Tutorials | 5 | 12-20-2005 10:51 AM |
| Split this image into 100% CSS and get 200 NP$ - Even 1 free .com domain name. | mholt | Web Development Wanted | 5 | 09-15-2005 05:25 PM |
| What Keywords? | spy69 | Search Engines | 5 | 06-28-2005 08:05 PM |
| CSS and Two Image Rollover Effects | wasabisam | Programming | 2 | 03-03-2004 06:12 AM |