• Resolved johannes999

    (@johannes999)


    hello,
    I have this code in my HTML page(which made with Foundation Grid System:

    
    <div class="row">
    <div class="small-8 column">
    
    <div class=" media-object">
    <div class="section-repair">
      <div class="subsection-repair small-6 column media-object-section">
    
      <img src="https://webdesignleren.net/wp-content/uploads/2016/11/auto-reparatie.svg" alt="auto-reparatie" class="alignnone size-medium wp-image-4249" />  
      </div>
      <div class="subsectionX-repair small-6 column media-object-section">
        <img src="https://webdesignleren.net/wp-content/uploads/2016/11/auto-reparatie.svg" alt="auto-reparatie" class="alignnone size-medium wp-image-4249" />
      </div>
    </div> </div>
    
    <div class=" media-object">
    <div class="section-repair2">
    <div class="subsection-repair2 small-6 column media-object-section">Grote beurt</div>
    
    <div class="subsectionX-repair2 small-6 column media-object-section"><img src="https://webdesignleren.net/wp-content/uploads/2016/11/autopech-in-zomer.svg" alt="" />  </div>
    </div>  </div>
    
    <div class=" media-object">
    <div class="section-repair3">
    
    <div class="subsection-repair3 small-6 column media-object-section">Kleine beurt</div>
    <div class="subsectionX-repair3 small-6 column "media-object-section><img src="https://webdesignleren.net/wp-content/uploads/2016/11/Grote-beurt.svg"" alt="" /></div>
    </div> </div>
    
      
    
    <div class=" media-object">
    <div class="section-repair4">
    <div class="subsection-repair4 small-6 column media-object-section">Olie verversen</div>
    <div class="subsectionX-repair4 media-object-section"></div>
    </div>  </div>
     </div>
    <div class="small-4 column">
    <div class="aside1">
    
    <div  class="subsection-aside1 small-6 column"> </div>
    <div class="subsectionX-aside1 small-6 column"> </div>  
    </div>
    
    <div class="aside2">
    
    <div class="subsection-aside2 small-6 column"></div>  
    <div class="subsectionX-aside2 small-6 column">  </div>
    </div>
    
     <div class="aside3">
    <div class="subsection-aside3 small-6 column"><img class="alignnone size-medium wp-image-4055" src="https://webdesignleren.net/wp-content/uploads/2016/10/Facebook-logo-2.svg" alt="facebook-logo" /></div>
    <div class="subsectionX-aside3 small-6 column">c</div> 
     </div>
      </div>
    
    </div>
    
    

    when you go to this site:https://webdesignleren.net/
    you can see that in the first border or container (first row) the 2 pictures are in the right place ,but in the second and third row (border or container) the picures are not in the right place.I tried in CSS padding-top and margin top for this two classes :

    
    .subsectionX-repair3 {
    padding-top:zzrem;
    
    }
    .subsectionX-repair2 {
    padding-top:xxrem;
    }
    

    but those 2 pictures are not responding to CSS code and not mowing to theo the right place in the container or border.
    I like to know what it can be the problem that this 2 pictures are not responding for css code? this 2 pictures are SVG format one is 538kb and the other is 67 kb.
    I tried class Image IN CSS in place of subsection class but it is not working either!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Rajan Vijayan

    (@rajanit2000)

    I can’t find this code on our link

    Alcatraz83

    (@alcatraz83)

    Hi, the problem is that the you have two container, small-8 column and small-4 column.
    One is on the left and the other on ther right (this is ok).
    But the imges are all in the second block.
    You should have a code like this (if i understand what you want):
    <div class=”small-8 column”>
    <div class=”section1″> </div>
    <div class=”section2″> dedede</div>
    </div>

    <div class=”small-4 column”>
    <div class=”aside1″> </div>
    </div>
    <div style=”clearboth”></div>

    The you should replicate this code for every line.

    Thread Starter johannes999

    (@johannes999)

    thanks ,
    the section 1 and section 2 (under the class=”small-8 column”) as you tell in the example above.
    its each border of it is divided into 2 subsections.

    
    <div class=" media-object">
    <div class="section-repair2">
    <div class="subsection-repair2 small-6 column media-object-section">Grote beurt</div>
    
    <div class="subsectionX-repair2 small-6 column media-object-section"><img src="https://webdesignleren.net/wp-content/uploads/2016/11/autopech-in-zomer.svg" alt="" />  </div>
    </div>  </div>
    

    foundation works with 12 column. so I have first divided the whole page into 2 sections
    1- the left side into small-8 column..
    2-the right side into small-4 column.
    then I have created 4 borders in the left section( small-8 column)
    now I have each border divided into 2 subsections
    as example:
    <div class=”small-8 column”>
    <div class=”section1″>
    <div class=”subsection1-first small-6 column> </div>
    <div class=”subsection1-second small-6 column”> </div>
    </div>
    <div class=”section2″>
    <div class=” subsection2-first small-6 column”> </div>
    <div class=”subsection2-second small-6 column”> the picture url I have replaced here as example </div>
    </div>
    and the problem is that when I am using padding or margin to rplace the picture in the right position in the border the css code is not responding .exmple:
    .subsection2-second {
    padding-top:1rem;
    or
    margin-top:1rem;
    }
    so as you see the picture is not moving to its place as I tell in css>
    thanks
    johannes

    Alcatraz83

    (@alcatraz83)

    Do you want add padding o margin to div inside the other div the aside1, aside2 and aside3?
    Sorry, i’m trying to understand.

    Alcatraz83

    (@alcatraz83)

    Hi, now i understand.
    The problem is the image, if you try to insert the same image of the first block the problem desappear.
    What i don’t understand is why the image has no dimesion.

    Thread Starter johannes999

    (@johannes999)

    thanks ,
    they are svg format.
    here is an example:

    
    <div class="subsectionX-repair small-6 column media-object-section">
        <img src="https://webdesignleren.net/wp-content/uploads/2016/11/auto-reparatie.svg" alt="auto-reparatie" class="alignnone size-medium wp-image-4249" />
      </div>
    

    I have converted jpeg images into svg format in Illustrator, maybe this can be the problem .
    I am going to test first with inserting some text and jpeg image in subsection class to see if the problem is solved.
    thanks again
    johannes

    Alcatraz83

    (@alcatraz83)

    Whith jpg you should resolve the problem.
    Remember… when you insert floating element inside a div, es.:
    <div class=”section-repair2″>
    <div class=”subsection-repair2 small-6 column media-object-section”>Grote beurt</div>
    <div class=”subsectionX-repair2 small-6 column media-object-section”></div>
    </div>

    before close the div hou must insert ad element wich close the floating (clear:both style), es.:
    <div class=”section-repair2″>
    <div class=”subsection-repair2 small-6 column media-object-section”>Grote beurt</div>
    <div class=”subsectionX-repair2 small-6 column media-object-section”></div>
    <div style=”clear:both”></div>
    </div>

    Tell me if the problem was resolved.
    Have a nice day

    Thread Starter johannes999

    (@johannes999)

    I see that the image which I had converted to svg format in Illustrator is not recognized in css with positive values(margin-top) but it is recognized with negative values to move it to upward(margin-top) or downward.

    
    for example if I write this code:

    .subsectionX-repair,
    img {
    margin-top:-42px;
    }
    `
    then you can see on my website: https://webdesignleren.net/reparatie-ondehoud/

    that the blue arrow logo has moved to upward in the subsection of container.
    my questions are now :
    1-what can be the reason I have to use negative values to let the svg format arrow to move upward or downward?
    is this because when I converted jpeg to svg format the jpeg(image) is embedded in svg format?
    2-shall this negative values cause problems with different browsers or it is not a problem at all to use negative values.

    johannes

    Alcatraz83

    (@alcatraz83)

    But why don’t you use jpg format? Illustrator allow to export jpg.
    I don’t know that format, probabely the browser can be have many problem with svg.
    Please use jpg, you will not have problem!!!

    Thread Starter johannes999

    (@johannes999)

    thanks
    johannes

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘the images are not responding with its CSS code or mowing to the top’ is closed to new replies.