Jul 26, 2008

Css Image Position Problem - align image left or right

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > CSS (Cascading Style Sheets)

free web hosting

Css Image Position Problem - align image left or right

snlildude87
I am having problems figuring out why my image will not align how I want it. Here, you can see that the image is aligned to the left. This is the code for that block:

CODE

<a href="http://img355.imageshack.us/img355/844/r25870774779uu.jpg"><img src="http://img355.imageshack.us/img355/844/r25870774779uu.th.jpg" alt="bush bathroom break note" align="left" style="margin-right: 5px;"></a>[text goes here]


But if you go here, you can see that the text does not stay to the right of the thumbnails. What am I doing wrong?

Thanks for your help!

Reply

snlildude87
Okay, I solved my own problem. The difference between the two links provided above was that one had a br tag while the other did not. In my CSS file, I coded a break statement for ALL br tags, so it causes it do act weird.

Thanks for reading though.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. css align position image left text right - 2.47 hr back. (1)
  2. image position code - 2.76 hr back. (1)
  3. css image to o left of text - 4.54 hr back. (1)
  4. css float image link center - 6.09 hr back. (1)
  5. align picture to the left - 7.97 hr back. (1)
  6. css image align left - 10.90 hr back. (1)
  7. css image position code - 13.46 hr back. (1)
  8. problema img align left - 15.06 hr back. (1)
  9. css image align - 16.92 hr back. (1)
  10. align image codes - 17.14 hr back. (1)
  11. css change image position - 18.23 hr back. (1)
  12. css image alignment - 21.38 hr back. (1)
  13. css image position - 23.68 hr back. (1)
  14. image position right css - 27.44 hr back. (1)
Similar Topics

Keywords : css, image, position, problem, align, image, left

  1. Link Image Css Bug In Firefox
    Can anyone help me? (7)
  2. Centering A Div Containing Image.
    I have a logo I need centered in a aujustable width page (9)
    http://sonesay.trap17.com/sonesayi/ Just a new layout I'm working on, Any ideas how I can get
    the logo to be centered? At the moment I can only float it left or right. I think is possible to get
    it done in tables but I would prefer to stay away from them in layouts. Any insight appreciated. by
    the way source code and css is at http://sonesay.trap17.com/sonesayi/index.html
    http://sonesay.trap17.com/sonesayi/main.css thanks ....
  3. Align Text Column Without Tables Using Css
    Is it possible to get a 3 column alignment without using tables with C (13)
    I know I can use tables to get this effect but I am not sure if CSS can do it. I have not found any
    examples so far, the only alignments with CSS I have come across are whole div elements and nothing
    for inside formatting like tables offer. Heres my current stage of my layout so far. select a
    character to see output. http://sonesay.trap17.com/chars.php
    http://sonesay.trap17.com/profile.css The attached file is of my original plan but at this stage
    I cannot do a php+ajax pagination for characters because of lack of knowledge so I went with the
    simple drop down lis....
  4. Is It Possible To Align Text To The Center And Justify It?
    Example inside! (6)
    Basically, I have a list (like shown below) but as you can see, some parts stick out more than
    others, and it doesn't look ordered. What I wish to know is if it's possible to justify the
    text so it's ordered, but also keep it in the centre, using CSS /tongue.gif"
    style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> Although if another coding
    language needs to be used, then that's ok /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" /> Example: Beginning with A Beginning with O Beginning with V Beginn....
  5. Centering Background Image In Css
    (8)
    Well, the title says what I need. Basically, I want a background image that can be used in the body
    or inside a div (or table), which is centered.....
  6. Css Image Replacment
    using CSS to change the image path (5)
    I was wondering if it is possable to change the path to an image using CSS, so that I could provide
    a sort of template system rather then having to change a bunch of thing I could have astandard page
    and then by changing the external CSS I could change not only styles but the whole image, I soo how
    I could change the background-color { url(image.gif)} but whatabout an actual image say change the
    src of an img tag?....

    1. Looking for css, image, position, problem, align, image, left

Searching Video's for css, image, position, problem, align, image, left
advertisement



Css Image Position Problem - align image left or right



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE