REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.
Register Here
Forum Rules
CSS Forum
You are currently viewing our CSS Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
CSS Forum
>
can't align center
Link Back
Thread Tools
Search this Thread
can't align center
03-23-2011, 11:10 AM
#
1
(
permalink
)
can't align center
madseason
Experienced Talker
Posts: 35
Trades:
0
Talkupation:
I'm trying to center an image but i cant. The image just go left or right , not middle or center.
Quote:
<img align="center" alt="image" src="../images/image.jpg">
Thanks in advance
Last edited by madseason; 03-23-2011 at
11:16 AM
..
Register
now for full access!
03-23-2011, 11:22 AM
#
2
(
permalink
)
Re: can't align center
edgray
Super Moderator
Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades:
0
Talkupation:
you should try applying a "text-align: center;" declaration to the containing div.
__________________
Please login or register to view this content.
Registration is FREE
- a project in video and sound.
Please login or register to view this content.
Registration is FREE
"Absolute Rubbish, an insult to the blues."
- NME.
Please login or register to view this content.
Registration is FREE
- Come use our agency :)
03-23-2011, 11:26 AM
#
3
(
permalink
)
Re: can't align center
madseason
Experienced Talker
Posts: 35
Trades:
0
Talkupation:
Quote:
<div align=center>
<img alt="image" src="..jpg"></div>
It works
Quote:
Originally Posted by
chrishirst
add
Code:
margin: 0 auto;
to centre elements in the parent container.
thanks!
Last edited by madseason; 03-23-2011 at
11:31 AM
..
03-23-2011, 11:27 AM
#
4
(
permalink
)
Re: can't align center
chrishirst
Missing! presumed drunk.
Latest Blog Post:
A Simple DHTML Tabbed Interface
Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades:
0
Talkupation:
add
Code:
margin: 0 auto;
to centre elements in the parent container.
__________________
Chris. ->>
Please login or register to view this content.
Registration is FREE
<<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
« Reply to
can't align center
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
CSS Forum
>
can't align center
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.39057
seconds with
12
queries