[HTML] How To Align Any Image Center !

Status
Not open for further replies.
litewarez has explained it prefectly :)
Its exactly how I do it, create those three for aligning, and apply a width to the actual id of that element.

For example,
PHP:
<img src="wjunction.png" id="center" class="left" />
and the css style sheet would be something like
Code:
.center{
margin:0 auto;
}
#id{
width:500px;
}
 
Remove this never teach anyone this -_-

Code:
To Align The Image to Center use this code
 	PHP Code:
 	 		 			[COLOR=#000000] [COLOR=#0000BB][/COLOR][COLOR=#007700]<[/COLOR][COLOR=#0000BB]center[/COLOR][COLOR=#007700]><[/COLOR][COLOR=#0000BB]img src[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#DD0000]"http://www.wjunction.com/images/logo.png"[/COLOR][COLOR=#007700]></[/COLOR][COLOR=#0000BB]center[/COLOR][COLOR=#007700]>
[/COLOR][/COLOR]
 
Don't use tables for layout, they are depreciated and not considered proper HTML. Try to keep all your content and formatting seperate, that's why CSS was invented.
 
I have launched a Fashion Forum and having a big problem, There's isn't any built in option to upload images and finally I got an option to use it via attachments. But its really slower than external images. I used external host to show my images and problem is that I can't resize / align center the images using BB CODE of IMG.
 
Status
Not open for further replies.
Back
Top