Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: css column overflow and image problems

  1. #11
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    html for the columns (was too many characters for one post

    Code:
    <div class="columns">
        <div class="left">
    <p><b>2014 Festival Hours</b></p>
    <p>Hours: Friday 5pm to 11PM</p>
    <p>Saturday 11AM to 11PM</p>
    <p>Sunday 12 noon to 5PM</p>
    <p>Voluntary admission $3.00 (children under 12 are FREE)</p>
    <p>Music provided by DJ Meleti all weekend</p>
    <p>Live Music Friday at 7PM by orfeas</p>
    <p>Live Music Saturday at 7PM by Dilina</p>
    <p>Greek Dancing Exhibitions by our Greek School Students Friday and Saturday at 6PM</p>
    </div>
        <div class="right">
    <!-- Start cssSlider.com -->
    	THIS CODE IS TOO MANY CHARACTERS
    		<!-- End cssSlider.com -->
    </div></div>
    <div style="clear:both;"></div>

  2. #12
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    No that isn't what I meant. I meant a max-width media query, like the one here http://www.w3schools.com/cssref/css3_pr_mediaquery.asp - with the left and right columns defined inside and both given 100% width
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #13
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    I fixed it by changing from responsive columns to a responsive grid like this
    Code:
    Choose a margin (%)
    What Margin is Best?
    
    A margin of 1.6% gives you about 20 pixels on a standard monitor, but feel free to go large to suit your content.
    
    " Don't make the margin more than 10% or you'll end up with more margin than content! "
    Your Calculated Grid Size
    Here's your row of 2 with your margin of 1.6%.
    1 of 2
    1 of 2
    The Code
    Copy and paste the HTML and the CSS and you're away!
    The HTML
    
    <div class="section group">
    	<div class="col span_1_of_2">
    	This is column 1
    	</div>
    	<div class="col span_1_of_2">
    	This is column 2
    	</div>
    </div>
    
    The CSS
    
    /*  SECTIONS  */
    .section {
    	clear: both;
    	padding: 0px;
    	margin: 0px;
    }
    
    /*  COLUMN SETUP  */
    .col {
    	display: block;
    	float:left;
    	margin: 1% 0 1% 1.6%;
    }
    .col:first-child { margin-left: 0; }
    
    /*  GROUPING  */
    .group:before,
    .group:after { content:""; display:table; }
    .group:after { clear:both;}
    .group { zoom:1; /* For IE 6/7 */ }
    
    /*  GRID OF TWO  */
    .span_2_of_2 {
    	width: 100%;
    }
    .span_1_of_2 {
    	width: 49.2%;
    }
    
    /*  GO FULL WIDTH AT LESS THAN 480 PIXELS */
    
    @media only screen and (max-width: 480px) {
    	.col { 
    		margin: 1% 0 1% 0%;
    	}
    }
    
    @media only screen and (max-width: 480px) {
    	.span_2_of_2, .span_1_of_2 { width: 100%; }
    }
    html code
    Code:
    <div class="section group">
    	<div class="col span_1_of_2">
    	<p><b>2014 Festival Hours</b></p>
    <p>Hours: Friday 5pm to 11PM</p>
    <p>Saturday 11AM to 11PM</p>
    <p>Sunday 12 noon to 5PM</p>
    <p>Voluntary admission $3.00 (children under 12 are FREE)</p>
    <p>Music provided by DJ Meleti all weekend</p>
    <p>Live Music Friday at 7PM by orfeas</p>
    <p>Live Music Saturday at 7PM by Dilina</p>
    <p>Greek Dancing Exhibitions by our Greek School Students Friday and Saturday at 6PM</p>
    	</div>
    	<div class="col span_1_of_2">
    	<!-- Start cssSlider.com -->
    	SLIDE CODE WAY TOO LONG TO POST
    		<!-- End cssSlider.com -->
    	</div>
    </div>
    <div style="clear:both;"></div>
    Last edited by mlegg; 04-24-2015 at 09:29 PM.

  4. #14
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    I fixed it by changing from responsive columns to a responsive grid like this
    but you're already using a grid system.

    Auto-generators like http://www.responsivegridsystem.com/ are great but it's easy to get a lot of extra code-bloat that you don't need, especially when mixing a full, existing grid system and a partial regeneration from another source. I'm a bit confused why you don't keep using the responsive grid that is already in your stylesheet - are you aware that there are 2 different grid systems now in your CSS? Be careful when mixing them and try to clean up the one(s) that you aren't using to avoid future conflicts.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  5. The Following User Says Thank You to Beverleyh For This Useful Post:

    mlegg (04-25-2015)

Similar Threads

  1. Image overflow problem
    By alexrabe in forum Other
    Replies: 0
    Last Post: 11-29-2011, 10:18 PM
  2. Resolved Ultimate Fade-in slideshow (v2.4) Image Overflow
    By cereal killer in forum Bug reports
    Replies: 2
    Last Post: 03-03-2011, 02:15 PM
  3. Resolved 3 Column Layout problems
    By krisjohnson in forum CSS
    Replies: 4
    Last Post: 12-04-2008, 02:18 PM
  4. Problems with CSS 3-column layout
    By naiani in forum CSS
    Replies: 11
    Last Post: 08-14-2007, 08:02 PM
  5. Problems with alignment two column in IE
    By designkitt in forum CSS
    Replies: 13
    Last Post: 04-23-2007, 01:02 AM

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
  •