I have a set of CSS columns that I programmed and they work for the first 2 rows and then begin to stack incorrectly. I have tried different widths but to no avail.
You can see the problem live here: http://innerwestadv.com/dev/?page_id=10. It starts stacking wrong right under Market & Media Research. If I take out this row it stacks better but I am not sure what the difference is.
It is a wordpress 3.9.2 website using the NIVAN theme.
I have marked in the HTML where the code breaks.
CSS
.one-eighth {
width:7%;
margin:10px 1.5% 10px 0;
float:left;
}
.three-eighths {
width:38%;
margin:10px 3.5% 10px 0;
float:left;
}
.last {
margin:10px 0;
}
#media screen and (max-width: 768px) {
.one-eighth {
width:100%;
margin:0;
}
.three-eighths {
width:100%;
margin:0;
}
}
HTML
<div class="one-eighth">
<img class="alignleft size-thumbnail wp-image-221" src="http://innerwestadv.com/dev/wp-content/uploads/2014/08/Advertising1-150x150.png" alt="Advertising" width="150" height="150" /></div>
<div class="three-eighths">
<strong>Advertising & Public Relations</strong>
Before your customers can love your company, they must find your company. We will help you put your best foot forward.</div>
<div class="one-eighth">
<img class="alignleft size-thumbnail wp-image-214" src="http://innerwestadv.com/dev/wp-content/uploads/2014/08/Marketing-Plan-Development-150x150.png" alt="Marketing Plan Development" width="150" height="150" /></div>
<div class="three-eighths last">
<strong>Marketing Plan Development</strong>
Do you know what your business is about? What you do and don't do? What your ultimate goals are? Our development plan encompasses more than marketing: it not only answers those questions, but includes the words that spell out the purpose of your company in inspiring language.</div>
<!-- Removing this Row helps some -->
<div class="one-eighth">
<img class="alignleft size-thumbnail wp-image-212" src="http://innerwestadv.com/dev/wp-content/uploads/2014/08/Brand-Creation-150x150.png" alt="Brand Creation" width="150" height="150" /></div>
<div class="three-eighths">
<strong>Brand Creation & Management</strong>
The instantaneous brand recognition of a swoosh or a siren all start in the same place. We can build your brand from the ground up, or help to rebrand it.</div>
<div class="one-eighth">
<img class="alignleft size-thumbnail wp-image-213" src="http://innerwestadv.com/dev/wp-content/uploads/2014/08/Market-Media-Research-150x150.png" alt="Market & Media Research" width="150" height="150" /></div>
<div class="three-eighths last">
<strong>Market & Media Research</strong>
You might have the ideas but not the research behind the idea. Let us find out all the information necessary and do the dirty work so you can claim all the glory.</div>
<!-- CODE BREAKS HERE -->
<div class="one-eighth">
<img class="alignleft size-thumbnail wp-image-215" src="http://innerwestadv.com/dev/wp-content/uploads/2014/08/Media-Community-Relations-150x150.png" alt="Media & Community Relations" width="150" height="150" /></div>
<div class="three-eighths">
<strong>Media & Community Relations</strong>
We don’t like revealing our age, but in this case it’s time to brag about it. We are old. So old, if we don’t already know the right person for the story we do the research to find the perfect person who will. Like a good wine, that only gets better with age, the same is true for us.</div>
<div class="one-eighth">
<img class="alignleft size-thumbnail wp-image-219" src="http://innerwestadv.com/dev/wp-content/uploads/2014/08/Web-Design-Development-150x150.png" alt="Web Design & Development" width="150" height="150" /></div>
<div class="three-eighths last">
<strong>Web Design & Development</strong>
Form and Function go hand in hand. There is no point in having a beautifully designed website that isn’t effective, or an effective site that got looks like it was beat with the UGLY stick, if you know what we mean. We seamlessly integrate both form and function to ensure your website is not only visually appealing, but also a highly functioning information center for your business.</div>
<div class="one-eighth">
<img class="alignleft size-thumbnail wp-image-216" src="http://innerwestadv.com/dev/wp-content/uploads/2014/08/Media-Planning-150x150.png" alt="Media Planning" width="150" height="150" /></div>
<div class="three-eighths">
<strong>Media Plannning, Buying & Analysis</strong> (Ipad Wifi Icon)
You wouldn’t dare attempt to build a chair from IKEA without the step-by-step directions. You wouldn’t dream of traveling across Thailand without a map. So why would you spend your hard earned money without a well-developed media strategy? Let us help navigate- We can find your audience, develop cost-efficient strategies to reach them, get your creative to market, and measure the effectiveness of every effort to maximize the impact of each marketing dollar spent.</div>
<div class="one-eighth">
<img class="alignleft size-thumbnail wp-image-220" src="http://innerwestadv.com/dev/wp-content/uploads/2014/08/Web-Hosting-150x150.png" alt="Web Hosting" width="150" height="150" /></div>
<div class="three-eighths last">
<strong>Web Hosting/Management/Maintenance</strong>
We hate the “404 Not Found Error” even more than the tantalizing smell of bacon that wafts into our office at 10am daily from the crepe shop below us. In addition to updates you specifically request, we will also keep an eye on your managed site and address any technical issues as they arise.</div>
<div class="one-eighth">
<img class="alignleft size-thumbnail wp-image-218" src="http://innerwestadv.com/dev/wp-content/uploads/2014/08/Strategic-Planning-150x150.png" alt="Strategic Planning" width="150" height="150" /></div>
<div class="three-eighths">
<strong>Strategic Planning</strong>
We work with you to determine actions, set goals, and then with those goals, we help achieve the actions. We believe with both our connections and resources we can do anything, that’s our strategic plan.</div>
<div class="one-eighth">
<img class="alignleft size-thumbnail wp-image-217" src="http://innerwestadv.com/dev/wp-content/uploads/2014/08/Social-Media-150x150.png" alt="Social Media" width="150" height="150" /></div>
<div class="three-eighths last">
<strong>Social Media</strong>
Sure you know how to work the social platforms, but when running a business do you have time to make sure you’re communicating, building and engaging your audience to turn them into not only fans, but consumers?s</div>
</div>
This worked for me. I tested using firebug
Remove
margin: 0 20px 20px 0;
from
img.alignleft {
float: left;
margin: 0 20px 20px 0;
}
and see the change..all the items will get aranged..Try it out..please..
Related
When I am working on responsive then width 100% is not working, when I shrink my website. This problem is in my main section which is available after header section
my github repo
This is my HTML code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="common.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bitter:wght#300;400&display=swap" rel="stylesheet">
<title>Document</title>
</head>
<body>
<header>
<nav>
<div>
<img src="images/yuewr.png" alt="" srcset="">
</div>
<div>
<ul>
<li>Home</li>
<li>About us</li>
<li>Structure</li>
<li>Impact</li>
<li>Contact us</li>
<li><button>ENROLL NOW <img src="images/arrow-right-up.svg"/> </button></li>
</ul>
</div>
</nav>
</header>
<main>
<div class="first_section">
<div class="first_section_ka_image_div">
<img src="images/Frame-1.webp" alt="" srcset="" class="rotate">
</div>
<div class="first_section_ka_upper_div">
<h5>GO FROM <span class="text_gradient_color">ZERO TO PRO</span> IN JUST 3 MONTHS</h5>
<h1>THE BEST PLACEMENT FRIENDLY VIDEO EDITING COHORT MONEY CAN BUY.</h1>
<div><button>WATCH FREE WEBINAR <img src="images/arrow-right-up.svg"/></button></div>
<p class="text_gradient_color_white">*Applications for cohort-3 are open</p>
</div>
<div class="first_section-ka_opacity_div"></div>
</div>
<div class="second_section">
<div class="second_section_ka_upper_opacity_div"></div>
<div class="second_section_ka_middel_div">
<h5><span class="text_gradient_color">SEE WHO’S HIRING VIDEO EDITORS</span></h5>
<h1 class="font_w_s_c_t">OK, BUT WHERE’S THE DEMAND?</h1>
<div class="second_section_ka_middel_div_ka_img_section">
<img src="images/Vector-4.svg" alt="" srcset="">
<img src="images/Group-7.svg" alt="" srcset="">
<img src="images/Group-8.svg" alt="" srcset="">
<img src="images/Vector-2.svg" alt="" srcset="">
<img src="images/Vector-3.svg" alt="" srcset="">
<img src="images/Fill-1.svg" alt="" srcset="">
<img src="images/Group-2.svg" alt="" srcset="">
<img src="images/Group-1.svg" alt="" srcset="">
<img src="images/Group-3.svg" alt="" srcset="">
<img src="images/Vector-1.svg" alt="" srcset="">
<img src="images/gngm.png" alt="" srcset="">
<img src="images/Layer-6.png" alt="" srcset="">
<img src="images/Layer-5.png" alt="" srcset="">
</div>
</div>
<div class="second_section_ka_lower_opacity_div">
</div>
<p class="text_gradient_color_white">& almost all the top companies around the globe are looking for visual storytellers</p>
</div>
<div class="third_section">
<div class="third_section_ka_first_div">
<p><span class="text_gradient_color">ALL YOUR FAVES NEED A VIDEO EDITOR</span></p>
<h1 class="font_w_s_c_t">WANT TO WORK WITH TOP CREATORS?</h1>
</div>
<div class="third_section_ka_second_div">
<div class="third_section_ka_second_div_ka_img">
<div>
<img src="images/sharan.jpeg" alt="" srcset="">
<h4>Finance with Sharan</h4>
<h6>1.5M<br>
FOLLOWERS</h6>
</div>
<div>
<img src="images/trja.png" alt="" srcset="">
<h4>Mo Vlogs</h4>
<h6>11.2M<br>
FOLLOWERS</h6>
</div>
<div>
<img src="images/techburner.jpeg" alt="" srcset="">
<h4>Tech Burner</h4>
<h6>10M<br>
FOLLOWERS</h6>
</div>
<div>
<img src="images/shashank.jpeg" alt="" srcset="">
<h4>Shashank Udupa</h4>
<h6>162K<br>
FOLLOWERS</h6>
</div>
<div>
<img src="images/nas.jpeg" alt="" srcset="">
<h4>Nas Daily</h4>
<h6>10.7M<br>
FOLLOWERS</h6>
</div>
<div>
<img src="images/ab.jpeg" alt="" srcset="">
<h4>Abhi and Niyu</h4>
<h6>3.6M<br>
FOLLOWERS</h6>
</div>
</div>
<div class="third_section_ka_second_div_ka_p">
<p><em><span class="text_gradient_color_white"> Students from the past cohort are already working with some of these creators and many more creators are hiring from the next cohort.</em>
</span></p>
</div>
</div>
</div>
<div class="forth_section">
<div class="forth_section_first_div">
<h5><span class="text_gradient_color">CHANGING LIVES ONE VIDEO AT A TIME</span></h5>
<h1 class="font_w_s_c_t">THE IMPACT WE'VE CREATED</h1>
</div>
<div class="forth_section_second_div">
<div class="forth_section_second_div_ka_first_div">
<h5>A 3.2 Cr Impact on GDI</h5>
<p>We are creating a huge impact on India’s GDI - Gross domestic income. Students from Cohort-1 are earning a total sum of 3.2 Crore in salaries annually.</p>
</div>
<div class="forth_section_second_div_ka_second_div">
<h5>Massive 3000% ROI</h5>
<p>Cohort has almost 30x Return on Investment. Students have been placed with CTCs up to 10L Per annum with an average salary of 50,000 Per month.</p>
</div>
<div class="forth_section_second_div_ka_third_div">
<h5>High Placement Rates</h5>
<p>71% students who opted for placements from Cohort-1 got jobs with some of the biggest Indian creators. For Cohort-2 the expected placement rate is 86%</p>
</div>
</div>
</div>
<div class="fifth_section">
<div class="fifth_section_first_div">
<h5><span class="text_gradient_color">STUDENT TRANSFORMATION STORY</span></h5>
<h1 class="font_w_s_c_t">HERE'S WHAT OUR STUDENTS HAVE TO SAY</h1>
</div>
<div class="fifth_section_second_div">
<div>
<video src="video/1.mp4" controls></video>
</div>
<div>
<video src="video/2.mp4" controls></video>
</div>
<div>
<video src="video/3.mp4" controls></video>
</div>
</div>
</div>
<div class="sixth_section">
<div class="sixth_section_first_div">
<h5><span class="text_gradient_color">STUDENT TESTIMONIALS</span></h5>
<h1 class="font_w_s_c_t">READ SOME MORE STORIES</h1>
</div>
<div class="sixth_section_second_div">
<div class="sixth_section_second_div_ka_first_content">
<div>
<h5>Sumanyu Sood - Cohort 1</h5>
<p>Hello, Ocus Before I joined the cohort, I was into UX/UI design. Many of my friends were getting good gigs doing video editing. So, I always used to wonder how I can also get some good gigs. I had some experience with video editing before, but joining the cohort actually made me to sit down and devote time to the video editing. Ask any member of the cohort, The two classes that Martin took for sound design were the best. All three mentors were really helpful, from taking lectures to clearing up doubts in zoom chats. The remedial classes were organized for the beginners to cope up with the softwares, really appreciate that. By the end of the cohort, I'm capable enough to edit different types of videos and I feel I'm applying lot of stuff I learned while designing into video editing I received several placement offers, and Ocus assisted me in sorting out all my queries regarding the placements with a quick personal call. The networks I was able to create through the community are also absolutely priceless, and I'm so happy that Aevy and the team organized this cohort to inspire this community to learn together and form wonderful relationships. I just want to thank you Ocus, Martin and Varun and everyone from the aevy team to make this cohort possible.</p>
</div>
<div>
<h5>Dileep Reddy - Cohort 2</h5>
<p>I had the privilege of joining the Cohort and I can say with certainty that it has been a game-changer for me. The network I've gained access to, which includes India's top editors, content creators, and freelancers, has been invaluable. My life took a turn for the better when I was offered an internship at Aevy, made possible through the mentorship of great leaders like Varun Mayya, Kuntur Sir papa ocus, and Martin. Their guidance continues to shape my present and future. This investment has been life-changing and I highly recommend it to anyone looking to take their career to the next level.</p>
</div>
<div>
<h5>Tushar Agarwal - Cohort 1</h5>
<p>Hey Shirsh! I just wanted to tell you that I got my first stipend as a "video editor" credited today and I really want to thank you mentors and the aevy team for giving this
opportunity to us to learn the skill. TYSM!</p>
</div>
</div>
<div class="sixth_section_second_div_ka_second_content">
<div>
<h5>Rohit Tarale - Cohort 1</h5>
<p>I joined this cohort because I just wanted to learn something new, didnt expect it to be so great. I had never edited before on premiere. Best part for me was everything was taught from scratch, I learnt a lot and the learning skyrocketed after I joined as an intern. Trust me investing in this cohort was 1000% worth</p>
</div>
<div>
<h5>Neeraj - Cohort 1</h5>
<p>Hey bro, first of all i would like to thanks you for this cohort, if you wouldn't have called me, to main cohort main part nhi leta but u told me the benefits and all and so i decided to take part. And now yesterday i got hired by a agency, which works with like 15 big FIFA Youtube creators. 2:44 PM First two months will be internship with stipend of 15k and after performing well in intership they'll offer me a full time role with base pay of 30k and with more time and experience it will be 50k and could go upto like 70k too.</p>
</div>
<div>
<h5>Sumit - Cohort 2</h5>
<p>I'm glad to inform you that, I'm hired by Swarup Rao as a Full time Video Editor at High Income Tribe. Offer letter just came in. I'm going to be moving to Bangalore and be there by Next Sundav. Grateful for all the opportunities and offers you helped me with. Because of which I was able to choose the best. A big big thanks to you, mentors & Especially all Fellow community members from cohort who helped in everything to be the best version of myself. Grateful for Everything ✨🙌</p>
</div>
<div>
<h5>Harshith Burjurkar - Cohort 2</h5>
<p>This cohort was the YouTube industry break-in for me, it not only turned me into a professional editor but also
taught me how content industry actually works. Before this cohort I struggled with editing as the tutorials on YouTube were unstructured and the Return Of Investment I got from this cohort is at least 100x. Now I am not only good at editing, but also got to know how to
curate a good video, hook the audience better, mimic editing style of top YouTubers. Now I understand the power Visual storytelling which was taught by best in industry mentors Like Ocus, Martin, Varun Kuntoor.</p>
</div>
</div>
</div>
</div>
<div class="seventh_section">
<div class="seventh_section_first_div">
<div class="sixth_section_first_div_ka_content_div">
<h5><span class="text_gradient_color">FUTURE OF CONTENT IS VIDEO</span></h5>
<h1 class="font_w_s_c_t">WHY ARE WE DOING THIS?</h1>
<p class="text_gradient_color_white">
We are a group of visual storytellers who came together with one goal in mind - create the Best Videos the internet has ever seen. Children of digital age -we live and breathe YouTube and have built one of India's fastest growing infotainment Youtube channels - AevyTV.
<br><br><br>
Along the journey we realized that there are many creators like us who want to create top notch content but don’t have the right resources or mentors to guide them — The state of video education is broken.
<br><br><br>
That’s why we decided to build an ecosystem where you get access to the top video creators and editors and also get to learn the whole process of video content creation end to end. From scripting, storyboarding, shooting, editing, sound design, performance metrics, Youtube analytics — we will teach you how to think and build like the top 1% video producers in the world.
</p>
</div>
</div>
<div class="seventh_section_second_div">
<div class="sixth_section_first_div_ka_video_div">
<video src="video/2.mp4" loop controls></video>
</div>
</div>
</div>
<div class="eight_section">
<div class="eight_section_first_div">
<h5><span class="text_gradient_color">THE APPLICATION LAYER : TOOLS & SKILLS</span></h5>
<div><h1 class="font_w_s_c_t">CUT THE BS SHORT! TELL ME WHAT TOOLS AM I GOING TO MASTER?</h1></div>
</div>
<div class="eight_section_second_div">
<div class="eight_section_second_div_ka_backdiv"></div>
<img src="images/infographic.svg" alt="" srcset="">
</div>
</div>
<div class="nine_section">
<div class="nine_section_ka_first_div">
<h5><span class="text_gradient_color">WHAT MAKES US UNIQUE</span></h5>
<h1 class="font_w_s_c_t">YES, BUT WHY SHOULD I CHOOSE YOU?</h1>
</div>
<div class="nine_section_ka_second_div">
<div class="nine_section_ka_second_div_ka_content_div">
<div><img src="images/Group-120-1.svg" alt="" srcset=""></div>
<h5>Amazing Community</h5>
<p>Unlike all the other last-gen video editing courses out there, we give a community first learning experience. Not only do you learn, you make awesome life-long friends too.</p>
</div>
<div class="nine_section_ka_second_div_ka_content_div">
<div><img src="images/Group-125.svg" alt="" srcset=""></div>
<h5>Never seen before Placements</h5>
<p>Our placement rates surpass the placements of top tier Indian institutions. You focus on becoming a top editor, and we will focus on getting you a job with the best creators and companies.</p>
</div>
<div class="nine_section_ka_second_div_ka_content_div">
<div><img src="images/Group_1.svg" alt="" srcset=""></div>
<h5>Network of top Indian Creators</h5>
<p>We have a network of the top creators across the globe who are looking to hire from the next cohort. With Aevy, you get access and a chance to work with all the biggest names in the industry.</p>
</div>
</div>
</div>
<div class="ten_section">
<div class="ten_section_first_div">
<img src="images/rocket.png" alt="">
<img src="images/Union-1.svg" alt="" srcset="">
</div>
<div class="ten_section_second_div">
<h1 class="font_w_s_c_t">START YOUR JOURNEY TO BECOME A VIDEO EDITING NINJA</h1>
<button>ENROLL NOW <img src="images/arrow-right-up.svg" alt="" srcset=""></button>
</div>
</div>
<footer>
<div class="footer_first_section">
<img src="images/yuewr.png" alt="" srcset="">
</div>
<div class="footer_second_section">
<div class="footer_second_section_contact">
<div class="footer_second_section_contactAll">
<div><img src="images/Frame-61.svg" alt="" srcset=""></div>
<div><p>+91 97409 81289</p></div>
</div>
<div class="footer_second_section_contactAll">
<div><img src="images/Frame-61-1.svg" alt="" srcset=""></div>
<div><p>info#aevytv.com</p></div>
</div>
</div>
<div class="footer_second_section_policy">
<div class="footer_second_section_contact">
<div class="footer_second_section_contactAll">
<div><img src="images/privacy1.svg" alt="" srcset=""></div>
<p>Privacy Policy</p>
</div>
<div class="footer_second_section_contactAll">
<div><img src="images/cs.svg" alt="" srcset=""></div>
<p>Customer Supprt</p>
</div>
<div class="footer_second_section_contactAll">
<div><img src="images/tos.svg" alt="" srcset=""></div>
<p>Terms OS</p>
</div>
<div class="footer_second_section_contactAll">
<div><img src="images/refund.svg" alt="" srcset=""></div>
<p>Refund Policy</p>
</div>
</div>
</div>
</div>
<div class="footer_third_section">
<p>© COPYRIGHT 2022 AEVY VENTURES PVT. LTD.</p>
</div>
</footer>
</main>
</body>
</html>
This might not be very useful, but I will still post it here.
Something is overflowing, and if I remember correctly overflows cause scrolling. I have found that it seems to be something about your div element with the class first_section, It's likely the cause is the H1 element within.
Hope this helps a little.
EDIT: It seems that most of the sections overflow.
I need to make sure that my 3 footer widgets are the same height, even if the site user decides to put more content in one of the widgets, so that they adjust in height. I understand using display: flex is the best solution. I can't seem to make it work.
My html:
<div class="footer-widgets"><div class="wrap"><div class="footer-widgets-1 widget-area"><section id="testimonial_footer-3" class="widget widget_testimonial_footer"><div class="widget-wrap"><div id="testimonial_widget"><h4 class="widget-title widgettitle">Testimonial</h4><p class="myclass">Loved being a student at derby skill build. They really helped me grow as a</p><div id='tinyname'> </p> - Louise findlay, former student </div> </div></section>
</div><div class="footer-widgets-2 widget-area"><section id="blog_widget-2" class="widget widget_blog_widget"><div class="widget-wrap"><h4 class="widget-title widgettitle">Blog</h4>
<ul class="realty_widget">
<div class="titleblogcolor"> <a href="http://localhost/wordpress/?blog_posts=this-is-a-blog-by-a-student" title="this is a blog by a student">
this is a blog by a student</a></a> </div>
Find out more about this in our blog. We have lots going on here at Derby Skill Build</ul></div></section>
</div><div class="footer-widgets-3 widget-area"><section id="black-studio-tinymce-2" class="widget widget_black_studio_tinymce"><div class="widget-wrap"><h4 class="widget-title widgettitle">Associated with:</h4>
<div class="textwidget"><p><img class="alignnone size-full wp-image-244" src="http://localhost/wordpress/wp-content/uploads/2015/03/council.png" alt="council" width="80" height="43" /> <img class="alignnone size-medium wp-image-245" src="http://localhost/wordpress/wp-content/uploads/2015/03/edexcel.png" alt="edexcel" width="80" height="15" /> <img class="alignnone size-medium wp-image-247" src="http://localhost/wordpress/wp-content/uploads/2015/03/ofsted.png" alt="ofsted" width="80" height="69" /> <img class="alignnone size-medium wp-image-248" src="http://localhost/wordpress/wp-content/uploads/2015/03/woodhead.png" alt="woodhead" width="80" height="29" /> <img class="alignnone size-medium wp-image-249" src="http://localhost/wordpress/wp-content/uploads/2015/03/ascentis.png" alt="ascentis" width="80" height="49" /> <img class="alignnone size-medium wp-image-250" src="http://localhost/wordpress/wp-content/uploads/2015/03/beauty2.png" alt="beauty" width="80" height="35" /> <img class="alignnone size-medium wp-image-251" src="http://localhost/wordpress/wp-content/uploads/2015/03/connexions.png" alt="connexions" width="100" height="23" /></p>
</div></div></section>
</div></div></div>
I have tried the following in my style.css:
.footer-widgets { display: flex; }
.footer-widgets .wrap (display: flex; }
neither seem to work. I need to put `display: flex' for the parent div of these 3 widgets I understand. Any ideas please?
I am using the genesis framework.
The items you want automatically adjusted (flex items) need to be contained in a parent flexbox.
So, you need to do something like this and apply it to your code:
.flexbox {
display: flex;
}
.flex-item {
flex: 1; /* you need to use the "flex" property on the items you want in the flexbox, not the "display" property */
}
It's hard to see what you want adjusted based on your code. All of the widgets will need to have the same child-to-parent relation with the .flexbox container. So, if you give each widget a class of .footer-widget, then you can use .flexbox > .footer-widget to target each flex-item.
Hope that helps!
i'm a little rusty on html and css and i cant get 2 images to float, one on top of the other. heres the code...
<div class="kbody">
<img class="kimg1" src="img1.jpg" alt=" " width="375px" height="auto">
<div id="ktxt">
<p>          
Kristallnacht occurred on November 9-10, 1938. Also known as the night of
broken glass, it was an organized attack on the Jews. Hitler had Nazis all over
Germany and Austria that burned synagogues, broke store windows, stole from the
stores, killed a couple dozen Jews, and arrested twenty thousand more. A few days
later Germany made an "atonement fine" that added up to over one billion dollars
and placed it on the remaining Jews. </p>
</div>
<img class="kimg2" src="img3.jpg" alt=" " width="375px" height="auto">
</div>
and the css...
.kbody {
width:800px;
margin-left: auto;
margin-right: auto;
/*border-style:solid;
border-width:3px;*/
}
.kimg1 {
padding-left:5px;
padding-top:5px;
padding-bottom:5px;
float:left;
}
.kimg2 {
padding-left:5px;
padding-top:5px;
padding-bottom:5px;
float:left;
margin-top:10px;
}
#ktxt {
padding-left:10px;
padding-right:10px;
padding-top:10px;
/*border-width:2px;
border-style: solid;*/
width:350px;
height:330px;
margin-left:402px;
font-style:arial, sans-serif;
color: #336699;
font-size:14pt;
}
what am i doing wrong??
heres what it looks like with this code
http://imgur.com/a/ivDE2#0
To move the second image under the first:
.kimg2 {
clear: both;
}
<div class="kbody">
<img class="kimg1" src="img1.jpg" alt=" " width="375px" height="auto">
<div id="ktxt">
<p>          
Kristallnacht occurred on November 9-10, 1938. Also known as the night of
broken glass, it was an organized attack on the Jews. Hitler had Nazis all over
Germany and Austria that burned synagogues, broke store windows, stole from the
stores, killed a couple dozen Jews, and arrested twenty thousand more. A few days
later Germany made an "atonement fine" that added up to over one billion dollars
and placed it on the remaining Jews. </p>
</div>
<img class="kimg2" src="img3.jpg" alt=" " width="375px" height="auto">
<div style="clear:both"></div>
</div>
Put a clearfix between the elements you want to show them in separate lines. I would write a global css rule like .clearfix { clear: both; } and put a div before the second image;
Instead of writing bunch of use CSS text-indent property;
Sample Code:
<div class="kbody">
<img class="kimg1" src="img1.jpg" alt=" " width="375px" height="auto">
<div id="ktxt">
<p>
Kristallnacht occurred on November 9-10, 1938. Also known as the night of
broken glass, it was an organized attack on the Jews. Hitler had Nazis all over
Germany and Austria that burned synagogues, broke store windows, stole from the
stores, killed a couple dozen Jews, and arrested twenty thousand more. A few days
later Germany made an "atonement fine" that added up to over one billion dollars
and placed it on the remaining Jews.
</p>
</div>
<div class="clearfix"></div>
<img class="kimg2" src="img3.jpg" alt=" " width="375px" height="auto">
</div>
try to wrap your image
html
<div class="kbody">
<div class="imageWrapper">
<img class="kimg1" src="img1.jpg" alt=" " width="375px" height="auto" />
<img class="kimg2" src="img3.jpg" alt=" " width="375px" height="auto" />
</div>
<div id="ktxt">
<p>          
Kristallnacht occurred on November 9-10, 1938. Also known as the night of
broken glass, it was an organized attack on the Jews. Hitler had Nazis all over
Germany and Austria that burned synagogues, broke store windows, stole from the
stores, killed a couple dozen Jews, and arrested twenty thousand more. A few days
later Germany made an "atonement fine" that added up to over one billion dollars
and placed it on the remaining Jews. </p>
</div>
</div>
css
.imageWrapper {
float:left;
width:375px;
}
hope this help you
easier way is <img src="yourimage.jpg" align="left" />
As you want your picture to be floated to left side is not possible as you do. So, you should define your html alternatively for what you want as..
<div class="kbody">
<div class="kimg">
<img ..image1../>
<img ..image2../>
</div>
<div id="ktext">your text...</div>
</div>
Now define the css.
hints:
.kimg{width: 300px;}
#ktext{width: 300px;}
I'm trying to change my footers margin so that it expands to the width of the webpage, instead it still seems to be affect by the 50px of left/right margin I added to my #content section. What property am I missing here so I can remove the affect of the content's margins on my footer section?
Html
<div id="wrapper" />
<div id="header" />
<div id="mast"><img src="http://i1256.photobucket.com/albums/ii488/terafanb/guildwars2/26.png" height="99" width="774=" /></div>
<div id="below-mast" />
<div id="left" class="column"><img src="http://i157.photobucket.com/albums/t60/Dragon_Aleph/fantasy_warrior_23022-800x600.jpg" height="297" width="226" border="0" alt="Crusader Army" /></div>
<div id="center" class="column"><img src="http://i157.photobucket.com/albums/t60/Dragon_Aleph/fantasy_warrior_23022-800x600.jpg" height="297" width="400" border="0" alt="Crusader Army" /></div>
<div id="right" class="column"><img src="http://i157.photobucket.com/albums/t60/Dragon_Aleph/fantasy_warrior_23022-800x600.jpg" height="297" width="139" border="0" alt="Crusader Army" /></div>
<div></div>
<div id="content" />
<p>
<div class="Heading">Forward Exchange *</div>
$500.00 - collected upon the closing of the Relinquished Property.
$500.00 - collected upon closing of each Replacement Property purchased.
* Special credits may apply - Call Us.<br /></br>
<div id="we-pay">
<br />
<div class="Heading">We pay interest</div>
</br>
We provide full disclosure of the fees involved in the transaction in the Exchange Agreement. Our customers are entitled to receive earned interest based on the First National Bank of Durango Investment Money Market rate, from the time when the Relinquished Property funds are initially deposited. Interest does not accrue on those funds withdrawn during the first 30 calendar days after the funds are deposited in the Exchange Trust Account. Also, interest does not accrue if customer elects to have exchange funds held at First National Bank of Durango in an Unlimited FDIC insurance non-interest bearing account (available through December 31, 2012)
</div>
<br />
<div class="Heading">
Safe-Harbor Reverse Exchange <br />
<h2>We charge the following fees:</h2>
</div>
<div id="prices">$2,500.00 – Title holding fee<br />
$500.00 – LLC fee<br />
$200.00 – Monthly Rent<br />
Plus – Forward Exchange fees<br />
<br />
</div>
<div id="note">
<p>Note: If any improvements need to be made to the parked property,
being held by the EAT ( Exchange Accommodator Titleholder )
there will be an additional fee of 1% of the final sales price to Taxpayer.
</p>
<div>
<br /></br>
<div id="disclaimer">Fees are subject to change without prior notice</p></div>
</div>
<div id="footer">
Home
<strong>l</strong> What is a 1031 Exchange? <strong>l</strong> <a href="exchangeRequ.html">
1031 Exchange Requirements</a> <strong>l</strong> Types of Exchanges <br />
<div id="Second-Half">
How to get Started <strong>l</strong>
Why CLX?<strong>l</strong> Resources <strong>l</strong> FAQs <strong>l</strong> Fees
Contact Us
</div>
</div>
</div>
CSS
*{box-sizing:border-box;}
#wrapper {margin-left:auto; margin-right:auto;width:774px;}
#below-mast { width:774px; overflow:hidden; }
#left {height:297px; width:29%; margin:4px;margin-left:0px;}
#center{height:297px; width:51%; margin:4px;}
#right {height:297px; width:17%; margin:4px;}
#left, #center, #right { float:left;margin-bottom:50px;}
#content{overflow:;margin:0px;margin-top:100px;font-family:Arial, Helvetica, sans-serif;margin-right:50px;margin-left:50px;}
.Heading{font-size:19px;font-weight:bold;text-align:center; text-decoration:underline}
.Heading>h2{font-size:13px;text-decoration:none}
#we-pay{font-size:13px}
#we-pay>.Heading{font-size:20px;text-decoration:none;}
#prices{text-align:center; font-size:20px;}
#note{text-align:center;}
#disclaimer{font-size:13px; text-align:center; font-weight:bold;font-style:italic; }
#footer{margin-right:-50px;margin-left:-50px;}
#footer,a:link{font-family:Helvetica, sans-serif;color:#300000; margin-top:50px;}
#Second-Half{margin-left:auto; margin-right:auto;width:450px;}
Here is a link to my code on Code Pen for your convience
http://codepen.io/Austin-Davis/pen/rLeEi
Your bug can be fixed with the following piece of code:
#footer { margin: 0; position: absolute; left: 0; width: 100%; }
Please checkout: http://codepen.io/joe/pen/uBikf
PS: I gave the footer a gray background for testing purpose.
Sorry guys I was just missing a closing </div> on my #note section making the footer part of the content section, thus making any margin changes to the footer via css useless.
Another solution would be to move the footer outside of the #wrapper div.
Also please check your HTML.. it´s broken in so many places that fixing the css problem might be impossible ;)
eg. you have alot of selfclosing tags "" (not valid)
Also you are missing closing body tag, none exsisting tags "" etc etc..
I made my first attempt here to create my own webpage.. But what can be the error in the code i wrote here?
<div align=center>
<img src="icons/twittergrey.png" alt="Twitter" name="Twitter" width="48" height="48" border="0" id="Twitter" />
<img src="icons/facebookgrey.png" alt="Facebook" name="Facebook" width="48" height="48" border="0" id="Facebook" />
<img src="icons/youtubegrey.png" alt="YouTube" name="YouTube" width="48" height="48" border="0" id="YouTube" />
<img src="icons/rssgrey.png" alt="RSS" name="RSS" width="48" height="48" border="0" id="RSS" />
<img src="icons/androidgrey.png" alt="Android Market" name="Android Market" width="48" height="48" border="0" id="Android Market" />
<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Twitter','','icons/twitter.png',1)">
<a href="#" target="_blank" onmouseover="MM_swapImage('YouTube','','icons/youtube.png',1)" onmouseout="MM_swapImgRestore()">
Sorry i got this loong lines here.. Dunno how i could make it look like a list..
Well there's only two problems I can see, the first is that the center should be in speech marks, so it should look like ="center". Secondly you need to add </div> at the end... Should work then :D
After breaking your lines, a couple of your anchors are missing the </a> on them, which I'm sure is going to be causing some problems for you.
Also, align="center" is deprecated. Use style="text-align: center" instead.
P.S. You really shouldn't write your code all on one line like that (at least hopefully you aren't). All that will cause is problems like this.
You have an embedded anchor tag in an anchor tag (may cause problems) you also are missing two ending anchor tags and an ending div tag as noted by others.
Your markup is really confusing though XD
cleaned up (a little) version of your markup
http://jsfiddle.net/MZge2/1
You need to Close
<div align=center> with </div>
<div align=center> Should be <div align="center">