GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 09-Jan-2009, 05:47
damy damy is offline
Junior Member
 
Join Date: Aug 2007
Location: Romania,Timisoara
Posts: 51
damy is on a distinguished road

Position an image to the left or right


How I do to put images where I want, for example I have a frame at the top of page ( like a banner ) and I want to pot aligned on the same row an image, some space, text, and an image but I don't know how to put the second image at a distance from the text.


Thanx.
  #2  
Old 09-Jan-2009, 18:14
Blake's Avatar
Blake Blake is offline
Member
 
Join Date: Nov 2005
Posts: 255
Blake is a jewel in the roughBlake is a jewel in the rough

Re: images


The css attributes float :left and float: right will make a tag move to the left or right side of the parent tag, while other content flows around it. I think that's what you're talking about, but it would be helpful if you could find a website that does what you're trying to do a an example.
__________________
www.blake-foster.com
  #3  
Old 11-Jan-2009, 09:13
damy damy is offline
Junior Member
 
Join Date: Aug 2007
Location: Romania,Timisoara
Posts: 51
damy is on a distinguished road

Re: Position an image to the left or right


Look at this page, I have two pictures and I want that the text to be centered and the pictures, first picture at the start of the row and second at the end of the row, but I don't know how?

And something more, if I resize the window browser, the second picture goes on the second row.

If you can to say to me some attributes something I'll be gladly.

Thanx
  #4  
Old 11-Jan-2009, 09:36
Blake's Avatar
Blake Blake is offline
Member
 
Join Date: Nov 2005
Posts: 255
Blake is a jewel in the roughBlake is a jewel in the rough

Re: Position an image to the left or right


If I'm understanding what you're asking, this is the effect you're looking for:


HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>example</title> <style type="text/css"> div.row {min-width: 512px; /* minimumm width of row in pixels */} div.center {text-align: center;} img.left {float: left;} img.right {float: right;} </style> </head> <body> <div class="row"> <img class="left" src="im1.gif" alt=""/> <img class="right" src="im2.gif" alt=""/> <div class="center">Hello world!</div> </div> </body> </html>

I've attached the two images that I used.
Attached Images
File Type: gif im1.gif (481 Bytes, 3 views)
File Type: gif im2.gif (498 Bytes, 1 views)
__________________
www.blake-foster.com
  #5  
Old 12-Jan-2009, 12:16
damy damy is offline
Junior Member
 
Join Date: Aug 2007
Location: Romania,Timisoara
Posts: 51
damy is on a distinguished road

Re: Position an image to the left or right


Thanks this is what I want, at the first glance I don't understend all the code, butt at least now I have where to start with studies.

Thank you very much.
  #6  
Old 12-Jan-2009, 12:25
Blake's Avatar
Blake Blake is offline
Member
 
Join Date: Nov 2005
Posts: 255
Blake is a jewel in the roughBlake is a jewel in the rough

Re: Position an image to the left or right


You're welcome. I would recommend taking a look at this tutorial. It explains all the code that I used.
__________________
www.blake-foster.com
  #7  
Old 12-Jan-2009, 14:52
damy damy is offline
Junior Member
 
Join Date: Aug 2007
Location: Romania,Timisoara
Posts: 51
damy is on a distinguished road

Re: Position an image to the left or right


Thank you, it's a very good tutorial, I readed but it seems that wasn't enough. thx again.
  #8  
Old 30-Jan-2009, 07:47
adyuts adyuts is offline
New Member
 
Join Date: Jan 2009
Posts: 1
adyuts has a little shameless behaviour in the past

Re: Position an image to the left or right


use CSS to do that!
about posts are quite OK. try those.

Im using dreamweaver to do hard coding for me and some freeware for text editor.
 
 

Recent GIDBlogProgramming ebook direct download available by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Display more than 2 images in fltk centos1986 FLTK Forum 2 15-May-2007 05:01
Loading wrong images. Sujith MS Visual C++ / MFC Forum 0 08-May-2007 05:48
Loading several images simultaneously yashin MS Visual C++ / MFC Forum 0 08-Apr-2007 14:03
Scaling Images Richardknox MySQL / PHP Forum 2 01-Dec-2006 11:25
Why are my images distorted? rhino1616 Graphics Forum 0 27-Jun-2003 10:30

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 23:53.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.