the HTML is too long to post, so here it is in the attachment
the HTML is too long to post, so here it is in the attachment
On small screens, the video on the left is a bit higher than the one on the right because of pause.png. You should give that image an absolute position.
The page I gave you validates except for autoplay=1&rel=0 and frameborder="0". That's no issue at all. If you want the page to validate, replace & with & and remove frameborder="0". Your own online page, on the other hand, has many validation errors. Try to fix it.
The black space above the footer has nothing to do with my code. That's another subject.
This works fine - http://fofwebdesign.co.uk/template/_...g/rwd2vids.htm - the only thing I did was;
- return my markup to the web page
- move the video CSS to the bottom of your stylesheet
- put the.vid-contentin the HTML markup (you had it in the stylesheet but not in the HTML)
- add greater specificity to the CSS with the.vid-contentselector
- fine-tuning: override 2 definitions (margin and float) from elsewhere (but only for the.vid-contentcontainer)
CSSHTMLCode:.vid-content { padding:1em; max-width:64em; margin:auto } .videoWrapper { position:relative; padding-bottom:56.25%; padding-top:25px; height:0 } .videoWrapper iframe { position:absolute; top:0; left:0; width:100%; height: 100% } .vid-content .col, .vid-content .col * { box-sizing:border-box } .vid-content .col { padding:2% 0; margin:0; float:none } @media ( min-width:35em ) { /* #### - > 560px (560 / 16 = 35) - 16px being default browser font-size - #### */ .vid-content .col { width:50%; padding:2% } .vid-content .col-1 { float:left } .vid-content .col-2 { float:right } }ps - to stop the video on the left being a little higher, you can clear it with theCode:<div class="vid-content"> <div class="col col-1 clear"> <div class="videoWrapper"> <iframe width="450" height="363" src="https://www.youtube.com/embed/aaINOaWt938?rel=0?" frameborder="0" allowfullscreen></iframe> </div> <p>Click Above To View Testimonial Video!</p> </div> <div class="col col-2"> <div class="videoWrapper"> <iframe width="450" height="363" src="https://www.youtube.com/embed/e6UWqeLaMm4?rel=0?" frameborder="0" allowfullscreen></iframe> </div> <p>Click Above To View Peter In Seminar Action!</p> </div> </div>.clearclass already in your stylesheet as per my previous suggestion here: http://www.dynamicdrive.com/forums/s...620#post311620 (I've put that back into the markup in blue)
Last edited by Beverleyh; 03-27-2015 at 08:55 AM.
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
Not sure about other devices, but here's how this method looks and behaves on iPhone 5S http://fofwebdesign.co.uk/template/_...uery-thumb.mov
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
mlegg (03-27-2015)
And a comparison iPhone 5S video for the alternative method: http://fofwebdesign.co.uk/template/_...-thumb-bev.mov
Both methods tested in Safari, Chrome and Mercury browsers - same behaviour as the videos show.
Last edited by Beverleyh; 03-27-2015 at 10:09 AM.
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
mlegg (03-27-2015)
That worked great for the videos Bev. I still cannot figure out what div is open or an extra closed to leave a space between the white content and the orange footer.
I can't wait until I'm done with this project.![]()
That would be courtesy of this line here;Code:<p style="text-align:center">Call For Your Complimentary Consultation (520) 977-5695</p><p>tags have default margins that are pushing the divs either side apart - hence the black gap. If you zero the margin, the gap will close;If you need extra space once that is set, try putting on some padding (padding creates space internally, margin creates space externally)Code:<p style="text-align:center; margin:0">Call For Your Complimentary Consultation (520) 977-5695</p>![]()
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
mlegg (03-27-2015)
Thanks I didn't realize that, obviously :P
Bookmarks