SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    811
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    could I get some advice on how preventing elements stretching outside the div?

    stretching.jpg
    http://cdiwwwtest.cdicorp.com/engineering
    as I strecht and enlarge the browser the component comes out of the div.
    tried setting height, max-height...
    Any advice please?
    thx
    D

  2. #2
    SitePoint Mentor bronze trophy
    ronpat's Avatar
    Join Date
    Jun 2012
    Location
    NJ, USA
    Posts
    2,613
    Mentioned
    65 Post(s)
    Tagged
    2 Thread(s)
    The same thing happens if the browser window is narrowed considerably.

    These two fixed heights are preventing their containers from extending with the contents:
    Code:
    engST.css (line 62)
    #testimonials {
        height: 600px;
    }
    
    engST.css (line 67)
    .carousel {
        height:600px;
    }
    I suggest that you delete them.

    You can put a little space beneath the button by adding:
    Code:
    .readMore {
        padding-bottom:20px;  /* as desired */
    }
    The vertical margins on some of these objects are defined in percent. Not a good choice. Although it's a vertical margin, a percent value is interpreted as a percent of the width, not the height. I recommend changing them to pixel values.

  3. #3
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    811
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    thank you Ronpat that helped quite a bit.
    Thanks also for the advice on the percentage. was not aware of that. will look into changing them.
    d

  4. #4
    SitePoint Mentor bronze trophy
    ronpat's Avatar
    Join Date
    Jun 2012
    Location
    NJ, USA
    Posts
    2,613
    Mentioned
    65 Post(s)
    Tagged
    2 Thread(s)
    You're quite welcome. You know where to find us.

  5. #5
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    811
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I am a frequent flyer here :-)


Bookmarks

Posting Permissions

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