Welcome to Dream.In.Code
Become an Expert!

Join 150,020 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,507 people online right now. Registration is fast and FREE... Join Now!




positioning image links

 
Reply to this topicStart new topic

positioning image links

Tal
13 Dec, 2006 - 04:19 PM
Post #1

New D.I.C Head
*

Joined: 24 Nov, 2006
Posts: 5


My Contributions
like when you have this:

<a href="blah"><img border="0" alt="blah" src="blah></img></a>

I tried positioning it, but there's no way. I tried to make it into a header, but i think its not seeing it as a header, but just a link. help?

This post has been edited by Tal: 13 Dec, 2006 - 04:20 PM
User is offlineProfile CardPM
+Quote Post

eXceed69
RE: Positioning Image Links
13 Dec, 2006 - 05:19 PM
Post #2

"Super Sentai Knight Of DawN"
Group Icon

Joined: 12 Nov, 2006
Posts: 682



Thanked: 1 times
Dream Kudos: 675
My Contributions
for positioning an image is quite simple
CODE

<a href="blah"><img border="0" alt="blah" src="blah align =right></a>


If you positioning an image just the generic ones like top,right and etc.

User is offlineProfile CardPM
+Quote Post

Tal
RE: Positioning Image Links
13 Dec, 2006 - 05:36 PM
Post #3

New D.I.C Head
*

Joined: 24 Nov, 2006
Posts: 5


My Contributions
thanks! that's all i needed.
User is offlineProfile CardPM
+Quote Post

snoj
RE: Positioning Image Links
13 Dec, 2006 - 07:13 PM
Post #4

Fell off the face of the earth
Group Icon

Joined: 31 Mar, 2003
Posts: 3,325



Thanked: 9 times
Dream Kudos: 750
My Contributions
Errors corrected and CSSed
<a href="blah"><img alt="blah" src="blah" style="text-align:right; border:0px;"></a>

CSS dudes, do I have that text-align correct?
User is offlineProfile CardPM
+Quote Post

Arbitrator
RE: Positioning Image Links
16 Dec, 2006 - 04:14 AM
Post #5

D.I.C Regular
Group Icon

Joined: 26 Jan, 2005
Posts: 492



Thanked: 2 times
My Contributions
QUOTE(hotsnoj @ 13 Dec, 2006 - 08:13 PM) *
Errors corrected and CSSed
<a href="blah"><img alt="blah" src="blah" style="text-align:right; border:0px;"></a>

CSS dudes, do I have that text-align correct?
I don’t believe so. When the deprecated align attribute is used on an image, it’s equivalent to the CSS float property, so that would be float: right.

The text-align property, on the other hand, aligns inline (text) content inside a container; so, if you had an anchor (a) element sized at 500 by 500 pixels, containing an image at 300 by 300 pixels, then you could use text-align on the anchor element to move the image to the left, center, or right inside its container (the anchor element). More commonly, the container would be something like a paragraph though and text-align would align all of the text in addition to the image.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 09:18PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month