Results 1 to 2 of 2

Thread: img style link problem...

  1. #1
    Join Date
    Jun 2011

    img style link problem...

    Hy to all on this forum....maybe someone can help me...
    HTML Code:
    <div id="povezave">
                                <img width="299" height="32" src="odzadja/povezave.png"> //title of content
                                <a class="n"target="_blank" href="http://www.facebook.com/group.php?gid=259227384179">
                                <img style ="float:right; padding-right:78px;"width="48" height="48" border="0" src="odzadja/f.png">
                                </a> //link&icon FB
                                <a class="n"target="_blank" href="http://www.myspace.com/rockeband">
                                <img style ="float:left; padding-left:78px;"width="48" height="48" border="0" src="odzadja/m.png">
                                </a> //link&icon MS
                                <div id="rob">
                                    <img width="300" height="3" src="odzadja/rob.png">
                                </div> //streight line
    I have two problems...
    First is, that IE ignores <img style> tag.....
    Second, even wierder ,is that #rob ignores margin 10px....
    The problem must be in <img sytle> tag, because when i deleted syle tag, everithing works fine....
    i tried many things...I deleted all style properties an style it in css, its all the same....I pute every link in its own div, an styled div in css, IE works fine, FF ignores #rob margin....
    then i tried
    HTML Code:
    <div style="float:right; padding:10px 78px 0px 0px;">
                                    <a class="n" target="_blank" href="http://www.facebook.com/group.php?gid=259227384179">
                                    <img width="48" height="48" border="0" src="odzadja/f.png">
    IE shows perfect, FF ignores #rob.....
    I dont know...

    the page is on test server.....
    I have the same problem in #galerija......
    This img syle thing is driving me crazy.....
    sory for my ENG, and thanks to all....

  2. #2
    Join Date
    Nov 2010
    Los Angeles, CA
    a good place to start would be to use valid HTML. You are writing your element attributes incorrectly. There shouldn't be a space between the attribute and the = sign, and there should be a space between the class and target attributes of anchor tags.
    Last edited by Big O(1); 06-09-2011 at 06:53 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center