Results 1 to 10 of 29
Hybrid View
-
15th Jun 2010, 11:27 AM #1OPMember
[HTML] How To Align Any Image Center !
You dont know how to align images @ center ?
today i will teach you
A Simple Img Code to align it to left
PHP Code:<img src="http://www.besthostingforums.com/images/logo.png">
PHP Code:<center><img src="http://www.besthostingforums.com/images/logo.png"></center>
=========================
A better way is to use DIVs and CSS and auto the margin:
PHP Code:margin: auto;
Rapid S Reviewed by Rapid S on . [HTML] How To Align Any Image Center ! You dont know how to align images @ center ? today i will teach you :) :) A Simple Img Code to align it to left <img src="http://www.besthostingforums.com/images/logo.png"> To Align The Image to Center use this code Rating: 5(.*??)
.?.?.?.?*??) .........?.?*?)........
(?.??BuzzScene.(?.?*??)
............(?.??.....................(?.??*?`)
-
15th Jun 2010, 11:29 AM #2MemberWebsite's:
LulzIMG.com chtbx.com RapidPremium.Net ReleaseLeech.com RLSLeech.com NinjaRobotPirateZombieNazi.comKinda too basic but still. Cool.
-
15th Jun 2010, 11:34 AM #3ლ(ಠ益ಠლ)Website's:
extremecoderz.comA better way is to use DIVs and CSS and auto the margin:
Code:margin: auto;
-
15th Jun 2010, 11:39 AM #4OPMember
THanks Jay nice info
(.*??)
.?.?.?.?*??) .........?.?*?)........
(?.??BuzzScene.(?.?*??)
............(?.??.....................(?.??*?`)
-
16th Jun 2010, 02:34 AM #5MemberWebsite's:
BoxyVps.comwould it me better to use
<div align="center">
your image here
</div>
-
16th Jun 2010, 10:40 PM #6ლ(ಠ益ಠლ)Website's:
extremecoderz.comwell using align=center doesnt always work in all browers. Its really picky - it will work sometimes, and not at other points in the page. Using auto margins is completely cross-browser compatible.
Using <center> is fine, but you should really put as many variables in the CSS as possible, so you dont have to edit any html/php files and easily make any necessary changes via CSS.
-
16th Jun 2010, 10:48 PM #7Respected DeveloperWebsite's:
wrzc.orgTutorial How to SEO your Warez Site a guide to help you increase your organic traffic
Huge list of Warez Sites and free Multiposter Templates
-
16th Jun 2010, 10:55 PM #8MemberWebsite's:
litewarez.net litewarez.com triniwarez.comto be honest i ahve never used the <centre> in my codings i would prefer to do in CSS
Code:.left{ float:left; } .right{ float:right; } .acentre{ text-align:centre; }
Code:<div class="left"> <img class="acentre" src=",..."/> </div>
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
17th Jun 2010, 10:30 AM #9Member
You need a width value for margin: auto; to work properly.
Example:
Code:<div style="width: 400px; margin: 0 auto;"></div>
-
17th Jun 2010, 10:36 AM #10MemberWebsite's:
cancerite.comu can use tables if u want
<table width=100%><tr><td><img src="blahblah.jpg"></img></td><tr></table>
you can use height=100% too if u want it to be in the center of the page..! however it is not compatible with some versions of IE
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Help] Align Images to center in CSS
By coolboyz2323 in forum Technical Help Desk SupportReplies: 11Last Post: 5th Feb 2012, 04:14 PM -
How to align child categories in center?
By DuckBre in forum Web Development AreaReplies: 3Last Post: 3rd Feb 2012, 07:42 PM -
How do i align my webpage to the center?
By dtommy79 in forum Web Development AreaReplies: 6Last Post: 11th Jul 2011, 01:00 PM -
How to center align ads..?
By Hatefed in forum vBulletinReplies: 3Last Post: 9th Nov 2010, 03:13 PM -
[html] align problem
By Porsche_maniak in forum Webmaster DiscussionReplies: 11Last Post: 17th May 2010, 06:17 PM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...