-
AuthorPosts
-
espresso Friend
espresso
- Join date:
- May 2013
- Posts:
- 22
- Downloads:
- 0
- Uploads:
- 3
- Thanked:
- 3 times in 1 posts
July 25, 2013 at 4:59 pm #189229I’m trying to add two divs that are side by side with one that contains an image or youtube/vimeo video and the other text
How do I go about making these divs responsive and having the image/video responsive also?
Is there already CSS classes within template.css that I can recycle?
espresso Friendespresso
- Join date:
- May 2013
- Posts:
- 22
- Downloads:
- 0
- Uploads:
- 3
- Thanked:
- 3 times in 1 posts
July 25, 2013 at 6:08 pm #500163This is what I have tried
template.css
div.courseinfo-columns{display: inline-block; margin: 0 auto; position: relative;}
div.course-img{ position: relative; float: left; margin: 0 auto; vertical-align: center; display: inline-block; text-align: center; width: 48%;}
div.course-text{ position: relative; float: left; display: inline-block; text-align: left; vertical-align: top; width: 48%; }h3.course-subtitles { font-family: 'NovecentowideNormalRegular'; font-size: 110%; font-weight: bold; }
layout-mobile-port.css
div.course-img{ float: none; margin: 0 auto; vertical-align: center; text-align: center; width: auto; }
div.course-text{ float: none; text-align: left; vertical-align: top; width: auto;}
HTML
<div class=”courseinfo-columns”>
<div class=”course-img”>
<img title=”Example of a rosetta – a pattern which you will learn in the class” src=”images/latte-art-rosetta.jpg” alt=”Barista Training Courses – Latte Art” />
</div><div class=”course-text”>
<h3 class=”course-subtitles”><span>Who should enrol?</span></h3>
<ul class=”ja-typo-list list-star”>
<li><span class=”icon”> </span>If you would like to learn how to free pour and etch art on your coffees</li>
<li><span class=”icon”> </span>Home baristas and coffee enthusiasts who have a firm grasp of espresso making basics</li>
<li><span class=”icon”> </span>People looking to find a job as a barista</li>
</ul>
</div></div>
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 29, 2013 at 2:09 am #500387Hi
You can try to use media jquery to specify resolution of these divs for appropriate devices. Here are some references you can take a look:
http://code-tricks.com/css-media-queries-for-common-devices/
Hope it helps.
espresso Friendespresso
- Join date:
- May 2013
- Posts:
- 22
- Downloads:
- 0
- Uploads:
- 3
- Thanked:
- 3 times in 1 posts
August 1, 2013 at 8:01 am #500848My problem was that I wasn’t using
!important
to override the existing rules in template.css in layout-mobile-port.cssFirebug and Chrome Developer tools is amazing for debugging code!
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by Saguaros 10 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum