Nov 21, 2009

Css Image Position Problem - align image left or right

free web hosting
Open Discussion > MODERATED AREA > Computers > Programming Languages > CSS (Cascading Style Sheets)

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!

Comment/Reply (w/o sign-up)

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.

Comment/Reply (w/o sign-up)



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*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

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

  1. Problem Getting Text To Align With Different Resolutions
    (4)
  2. Problem Aligning In Firefox
    Problem aligning an image in Firefox. (9)
    Hello everyone! I am new here. /smile.gif" style="vertical-align:middle" emoid=":)" border="0"
    alt="smile.gif" /> I am looking for some advice...I've been fiddling around with my site for
    the last few hours and have had no luck! www.thelatency.com/test/tour_dates.php as you can the
    image header above all the text is aligned perfectly in IE and not in Firefox. Any ideas? Thanks
    so much in advance. /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif"
    />....
  3. Link Image Css Bug In Firefox
    Can anyone help me? (7)
    I have a problem in a site I am creating. I have styled my post content links in the following
    way. CODE #post-content a {     background-color: #bf6f3c;     color: #fff;     padding: 2px
    2px 1px 2px;     border-bottom: 1px solid #7f4926; } #post-content a:hover {     color: #f5fac7; }
    And when I insert an link image like so: There seems to be an extra border inherited from my
    #post-content a style. I have attached the screenshot to show the problem. This was how my link
    image should look like: CODE #post-content a img {     background-color: #b....
  4. 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 ....
  5. Align Text Column Without Tables Using Css
    Is it possible to get a 3 column alignment without using tables with C (15)
    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....
  6. 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....
  7. 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.....
  8. 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
See Also,
advertisement


Css Image Position Problem - align image left or right

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com