I am new to html so please don't mind the terrible coding..
I've created a list of links on my page in wordpress, but for some reason the first few aren't clickable. They seem to be fine here, but on my page they suddenly stop working
Here's the part of my HTML having issues:
.parent {
text-align: left;
}
.parent > ul {
display: inline-block;
}
<div class="parent" style="text-align: left; margin-left:0 auto; margin-right:0 auto; position: relative; top: +0px; right: 10px;">
<ul style= "font-size: 20px;">Public Open Sessions:
<li style="font-size: 16px;"><a href="http://shopkts.com/collections/training/products/3-day-uem-public-open-session-april-11" target="_blank" !important>April 11-13, Mississauga, Canada</a></li>
<li style="font-size: 16px;">April 18-20, Atlanta, USA</li>
<li style="font-size: 16px;">April 25-27, Calgary, Canada</li>
<li style="font-size: 16px;">May 2-4, Vancouver, Canada</li>
<li style="font-size: 16px;">May 9-11, Philadelphia, USA</li>
<li style="font-size: 16px;">May 16-18, Washington, DC, USA</li>
<li = style="font-size: 16px;">May 23-25, Dallas, USA</li>
</ul>
</div>
What's strange is the the first 3 links won't work, while the next 4 do. But if I move it to another part of the page, it suddenly works. Is it due to something else on the page?
Here is the full html incase it's needed:
.parent {
text-align: left;
}
.parent > ul {
display: inline-block;
}
<p style="text-align: center; font-size: 40px; color: black"> BlackBerry Open Sessions</p>
<p style="text-align: left;"><img class="alignnone size-full wp-image-1950" src="http://www.ktsglobal.ca/wp-content/uploads/2016/06/ps-1-e1478718264230.png" alt="ps" width="1766" height="569" /></p>
<p style="text-align: left; line-height:2px">Our public open sessions consists of instructor-led training and hands-on virtual labs. Participants will learn to Plan, Deploy and Manage BlackBerry UEM or BES12</p>
<p style="text-align: left; line-height:2px">with one of our certified instructors. Make sure to check back regularily to see our updated list of events.</p>
<hr />
<p style="text-align: center; font-size: 24px;"><img class="wp-image-1922 alignleft" src="http://www.ktsglobal.ca/wp-content/uploads/2016/11/shutterstock_196196186-e1478532776565.jpg" alt="shutterstock_196196186" width="505" height="346" /> Upcoming Public / Virtual Events:</p>
<p style="text-align: center; font-size: 18px;"></p>
<div class="parent" style="text-align: left; margin-left:0 auto; margin-right:0 auto; position: relative; top: +0px; right: 10px;">
<ul style= "font-size: 20px;">Public Open Sessions:
<li style="font-size: 16px;"><a href="http://shopkts.com/collections/training/products/3-day-uem-public-open-session-april-11" target="_blank" !important>April 11-13, Mississauga, Canada</a></li>
<li style="font-size: 16px;">April 18-20, Atlanta, USA</li>
<li style="font-size: 16px;">April 25-27, Calgary, Canada</li>
<li style="font-size: 16px;">May 2-4, Vancouver, Canada</li>
<li style="font-size: 16px;">May 9-11, Philadelphia, USA</li>
<li style="font-size: 16px;">May 16-18, Washington, DC, USA</li>
<li = style="font-size: 16px;">May 23-25, Dallas, USA</li>
</ul>
</div>
<div class="parent" style="margin-left:0 auto; margin-right:0 auto;position: relative; top: -238px; right: -380px;">
<ul style= "font-size: 20px;">Virtual Sessions:
<li style="font-size: 16px;">March 29-31</li>
<li style="font-size: 16px;">April 12-14</li>
<li style="font-size: 16px;">April 26-28</li>
</ul>
</div>
<p style="text-align: right; font-size: 20px; position: relative; top: +0px; right: 10px;">Click the training session you'd like to join to see more and sign up.<p/>
<hr style="position: relative; top: -30px;"/>
<img class="wp-image-1949 alignright" src="http://www.ktsglobal.ca/wp-content/uploads/2016/06/las-vegas-signs-clouds-blue-sky-1920x1080-e1478718166731.jpg" alt="las-vegas-signs-clouds-blue-sky-1920x1080" width="486" height="392" />
<p style="text-align: center; font-size: 24px;">Coming Soon</p>
<p style="font-size: 18px;">We are planning a special 3-day BlackBerry UEM training event in Las Vegas.</p>
<p style="font-size: 18px;">The training will focus on some new and exciting features of BlackBerry UEM.</p>
<p style="font-size: 18px;">Feel free to contact our team for more information. We hope to see you there!</p>
<hr style="position: relative; top: 20px; width:100%;"/>
<p style="text-align: center;font-size: 20px"><strong><span style="color: #0020c2;">Contact us for more info</span></strong></h4></p>
It looks like a mess but trust me, it works on the page.
Here's a link to the page
Any help would be great, thank you in advance!
Think I found it.
Try this:
.parent {
overflow: auto;
}
Your second "parent" div is covering up your links. Your code is actually really basic, so this probably isn't the best way to solve it, but it will work for you at this point.
I tried it and it worked fine, even in your webpaged link above. I don't see any problem. However, I found a typo (?) in the last <li>
<li = style="font-size: 16px;">
It should be:
<li style="font-size: 16px;">
Related
I've been trying to write custom CSS for styling of related posts which appear under each article of my website. Each related post consists of 1 thumbnail and 1 text headline.
There are 8 in total under each page grouped in a UL list, and the LI elements are floated to the Left so they display in 2 rows.
Problem is for some reason occasionally I have LI items which jump row for now apparent reason.
Here is an example:
Screenshot
This is the html part of the code:
<div class="crp_related ">
<h3>Related Stories:</h3>
<ul>
<li style="padding-top: 10px">
<a href="./document-reveals-isis-plot-for-world-domination-in-chilling-detail-full-translation-below/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="Document reveals ISIS plot for world domination in chilling detail: Full translation below" alt="Document reveals ISIS plot for world domination in chilling detail: Full translation below"
src="./wp-content/uploads/2015/12/Screen-Shot-2015-12-07-at-12.45.19-PM-150x150.png">
</a>
<br>
<a class="crp_title" href="./document-reveals-isis-plot-for-world-domination-in-chilling-detail-full-translation-below/">Document reveals ISIS plot for world domination in chilling…</a>
</li>
<li style="padding-top: 10px">
<a href="./devout-us-muslim-and-his-saudi-wife-left-their-baby-at-home-to-storm-back-to-office-christmas-party-with-automatic-weapons-and-slaughter-14-of-his-colleagues-before-dying-in-police-shoot-out/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="‘Devout’ US Muslim and his Saudi wife left their baby at home to storm back to office Christmas party with automatic weapons and slaughter 14 of his colleagues before dying in police shoot-out"
alt="‘Devout’ US Muslim and his Saudi wife left their baby at home to storm back to office Christmas party with automatic weapons and slaughter 14 of his colleagues before dying in police shoot-out" src="./wp-content/uploads/2015/12/farook1-150x150.jpg">
</a>
<br>
<a class="crp_title" href="./devout-us-muslim-and-his-saudi-wife-left-their-baby-at-home-to-storm-back-to-office-christmas-party-with-automatic-weapons-and-slaughter-14-of-his-colleagues-before-dying-in-police-shoot-out/">‘Devout’ US Muslim and his Saudi wife left their</a>
</li>
<li style="padding-top: 10px">
<a href="./obama-we-lose-when-america-scrutinizes-muslims-betrayal-of-our-values/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="Obama: ‘We Lose’ When America Scrutinizes Muslims… ‘Betrayal of Our Values’" alt="Obama: ‘We Lose’ When America Scrutinizes Muslims… ‘Betrayal of Our Values’"
src="./wp-content/uploads/2015/12/Obama126-150x150.jpg">
</a>
<br>
<a class="crp_title" href="./obama-we-lose-when-america-scrutinizes-muslims-betrayal-of-our-values/">Obama: ‘We Lose’ When America Scrutinizes…</a>
</li>
<li style="padding-top: 10px">
<a href="./great-partners-pentagon-rejects-russian-evidence-of-turkey-aiding-isis/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="‘Great partners’: Pentagon rejects Russian evidence of Turkey aiding ISIS" alt="‘Great partners’: Pentagon rejects Russian evidence of Turkey aiding ISIS"
src="./wp-content/uploads/2015/12/565f3967c461884a3d8b4627-150x150.jpg">
</a>
<br>
<a class="crp_title" href="./great-partners-pentagon-rejects-russian-evidence-of-turkey-aiding-isis/">‘Great partners’: Pentagon rejects Russian…</a>
</li>
<li style="padding-top: 10px">
<a href="./7-isis-facts-every-american-must-know/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="7 ISIS Facts Every American Must Know" alt="7 ISIS Facts Every American Must Know" src="./wp-content/uploads/2015/12/ISIS-Genocide-in-Iraq-AP-Photo-640x480.jpg">
</a>
<br>
<a class="crp_title" href="./7-isis-facts-every-american-must-know/">7 ISIS Facts Every American Must Know</a>
</li>
<li style="padding-top: 10px">
<a href="./will-your-city-or-state-be-the-next-san-bernardino-at-least-22-verified-islamic-terror-training-camps-in-us-all-under-the-watchful-eye-of-the-fbi/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="Will Your City or State be the Next San Bernardino? At Least 22 Verified Islamic Terror Training Camps in US – All Under the Watchful Eye of the FBI"
alt="Will Your City or State be the Next San Bernardino? At Least 22 Verified Islamic Terror Training Camps in US – All Under the Watchful Eye of the FBI" src="./wp-content/uploads/2015/12/120515_2259_WillYourCit1-150x150.jpg">
</a>
<br>
<a class="crp_title" href="./will-your-city-or-state-be-the-next-san-bernardino-at-least-22-verified-islamic-terror-training-camps-in-us-all-under-the-watchful-eye-of-the-fbi/">Will Your City or State be the Next San Bernardino? At Least</a>
</li>
<li style="padding-top: 10px">
<a href="./allah-took-their-sanity-putin-accuses-turkish-leadership-of-aiding-terror/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="‘Allah took their sanity’: Putin accuses Turkish leadership of ‘aiding terror’" alt="‘Allah took their sanity’: Putin accuses Turkish leadership of ‘aiding terror’"
src="./wp-content/uploads/2015/12/56600a0dc46188c3078b45e7-150x150.jpg">
</a>
<br>
<a class="crp_title" href="./allah-took-their-sanity-putin-accuses-turkish-leadership-of-aiding-terror/">‘Allah took their sanity’: Putin accuses Turkish…</a>
</li>
<li style="padding-top: 10px">
<a href="./russian-warplanes-hit-1458-terrorist-targets-in-syria-over-past-week/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="Russian Warplanes Hit 1,458 Terrorist Targets in Syria Over Past Week" alt="Russian Warplanes Hit 1,458 Terrorist Targets in Syria Over Past Week"
src="./wp-content/uploads/2015/12/1028392998-150x150.jpg">
</a>
<br>
<a class="crp_title" href="./russian-warplanes-hit-1458-terrorist-targets-in-syria-over-past-week/">Russian Warplanes Hit 1,458 Terrorist Targets in Syria Over…</a>
</li>
</ul>
<div class="crp_clear">
</div>
</div>
And this is the CSS part:
div.crp_related {
clear: both;
margin: 10px 0;
}
div.crp_related h3 {
margin: 0 !important;
}
div.crp_related ul {
list-style: none;
float: left;
margin: 0 !important;
padding: 0 !important;
}
div.crp_related li, div.crp_related a {
float: left;
overflow: hidden;
position: relative;
text-align: left;
display: table-cell;
}
div.crp_related li {
margin: 5px !important;
padding: 6px;
}
div.crp_related li:hover {
background: #eee;
}
div.crp_related a:hover {
text-decoration: none;
}
div.crp_related img {
max-width: 150px;
max-height: 150px;
min-height: 150px;
min-width: 150px;
margin: auto;
display: block;
overflow: hidden;
}
div.crp_related .crp_title {
position: relative;
max-width: 150px;
height: 100%;
padding-left: 0px;
padding-right: 3px;
padding-top: 3px;
padding-bottom: 3px;
color: #dc291e;
font-size: 12pt;
font-weight: bold;
}
div.crp_related .crp_thumb, div.crp_related li, div.crp_related .crp_title {
vertical-align: bottom;
}
.crp_clear {
clear: both;
}
Why is this happening?
What am I doing wrong?
Add following div after every four records.
<div style='clear:both'></div>
Please post a snippet of code with both CSS and HTML together.
1)
Probably the problem is due to the fact that in the first row the first 2 articles have a longer crp_title and it spans 4 rows, but in the other 2 articles crp_title spans 3 rows.
A floating element going in a new line tries to go up, and the reason why the second articles' row goes right is that the 3rd and 4th articles of the first row have a smaller height.
You can easily check it with your browser inspector.
2)clear:both after the last element of each row
A quick fix can be setting a fixed height in px of your .crp_title
This should do the trick:
div.crp_related > ul > li:nth-child(4):after {
content: '';
clear: both;
display: block;
visibility: hidden;
height: 0px;
}
This issue is due to unequal height of floated content, so you need to clear float and get next element on new row. You can do that using nth-child selectors.
div.crp_related {
clear: both;
margin: 10px 0;
}
div.crp_related h3 {
margin: 0 !important;
}
div.crp_related ul {
list-style: none;
float: left;
margin: 0 !important;
padding: 0 !important;
}
div.crp_related li,
div.crp_related a {
float: left;
overflow: hidden;
position: relative;
text-align: left;
display: table-cell;
}
div.crp_related li {
margin: 5px !important;
padding: 6px;
}
div.crp_related li:hover {
background: #eee;
}
div.crp_related a:hover {
text-decoration: none;
}
div.crp_related img {
max-width: 150px;
max-height: 150px;
min-height: 150px;
min-width: 150px;
margin: auto;
display: block;
overflow: hidden;
}
div.crp_related .crp_title {
position: relative;
max-width: 150px;
height: 100%;
padding-left: 0px;
padding-right: 3px;
padding-top: 3px;
padding-bottom: 3px;
color: #dc291e;
font-size: 12pt;
font-weight: bold;
}
div.crp_related .crp_thumb,
div.crp_related li,
div.crp_related .crp_title {
vertical-align: bottom;
}
.crp_clear {
clear: both;
}
/* THIS IS DUE TO UNEQUAL HEIGHT OF FLOATED CONTENT, so Clear Float on every 5th element */
#media (min-width: 768px) {
div.crp_related li:nth-child(4n+1) {
clear: both;
}
}
#media (max-width: 767px) {
div.crp_related li:nth-child(3n+1) {
clear: both;
}
<div class="crp_related ">
<h3>Related Stories:</h3>
<ul>
<li style="padding-top: 10px">
<a href="./document-reveals-isis-plot-for-world-domination-in-chilling-detail-full-translation-below/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="Document reveals ISIS plot for world domination in chilling detail: Full translation below" alt="Document reveals ISIS plot for world domination in chilling detail: Full translation below"
src="./wp-content/uploads/2015/12/Screen-Shot-2015-12-07-at-12.45.19-PM-150x150.png">
</a>
<br>
<a class="crp_title" href="./document-reveals-isis-plot-for-world-domination-in-chilling-detail-full-translation-below/">Document reveals ISIS plot for world domination in chilling…</a>
</li>
<li style="padding-top: 10px">
<a href="./devout-us-muslim-and-his-saudi-wife-left-their-baby-at-home-to-storm-back-to-office-christmas-party-with-automatic-weapons-and-slaughter-14-of-his-colleagues-before-dying-in-police-shoot-out/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="‘Devout’ US Muslim and his Saudi wife left their baby at home to storm back to office Christmas party with automatic weapons and slaughter 14 of his colleagues before dying in police shoot-out"
alt="‘Devout’ US Muslim and his Saudi wife left their baby at home to storm back to office Christmas party with automatic weapons and slaughter 14 of his colleagues before dying in police shoot-out" src="./wp-content/uploads/2015/12/farook1-150x150.jpg">
</a>
<br>
<a class="crp_title" href="./devout-us-muslim-and-his-saudi-wife-left-their-baby-at-home-to-storm-back-to-office-christmas-party-with-automatic-weapons-and-slaughter-14-of-his-colleagues-before-dying-in-police-shoot-out/">‘Devout’ US Muslim and his Saudi wife left their</a>
</li>
<li style="padding-top: 10px">
<a href="./obama-we-lose-when-america-scrutinizes-muslims-betrayal-of-our-values/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="Obama: ‘We Lose’ When America Scrutinizes Muslims… ‘Betrayal of Our Values’" alt="Obama: ‘We Lose’ When America Scrutinizes Muslims… ‘Betrayal of Our Values’"
src="./wp-content/uploads/2015/12/Obama126-150x150.jpg">
</a>
<br>
<a class="crp_title" href="./obama-we-lose-when-america-scrutinizes-muslims-betrayal-of-our-values/">Obama: ‘We Lose’ When America Scrutinizes…</a>
</li>
<li style="padding-top: 10px">
<a href="./great-partners-pentagon-rejects-russian-evidence-of-turkey-aiding-isis/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="‘Great partners’: Pentagon rejects Russian evidence of Turkey aiding ISIS" alt="‘Great partners’: Pentagon rejects Russian evidence of Turkey aiding ISIS"
src="./wp-content/uploads/2015/12/565f3967c461884a3d8b4627-150x150.jpg">
</a>
<br>
<a class="crp_title" href="./great-partners-pentagon-rejects-russian-evidence-of-turkey-aiding-isis/">‘Great partners’: Pentagon rejects Russian…</a>
</li>
<li style="padding-top: 10px">
<a href="./7-isis-facts-every-american-must-know/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="7 ISIS Facts Every American Must Know" alt="7 ISIS Facts Every American Must Know" src="./wp-content/uploads/2015/12/ISIS-Genocide-in-Iraq-AP-Photo-640x480.jpg">
</a>
<br>
<a class="crp_title" href="./7-isis-facts-every-american-must-know/">7 ISIS Facts Every American Must Know</a>
</li>
<li style="padding-top: 10px">
<a href="./will-your-city-or-state-be-the-next-san-bernardino-at-least-22-verified-islamic-terror-training-camps-in-us-all-under-the-watchful-eye-of-the-fbi/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="Will Your City or State be the Next San Bernardino? At Least 22 Verified Islamic Terror Training Camps in US – All Under the Watchful Eye of the FBI"
alt="Will Your City or State be the Next San Bernardino? At Least 22 Verified Islamic Terror Training Camps in US – All Under the Watchful Eye of the FBI" src="./wp-content/uploads/2015/12/120515_2259_WillYourCit1-150x150.jpg">
</a>
<br>
<a class="crp_title" href="./will-your-city-or-state-be-the-next-san-bernardino-at-least-22-verified-islamic-terror-training-camps-in-us-all-under-the-watchful-eye-of-the-fbi/">Will Your City or State be the Next San Bernardino? At Least</a>
</li>
<li style="padding-top: 10px">
<a href="./allah-took-their-sanity-putin-accuses-turkish-leadership-of-aiding-terror/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="‘Allah took their sanity’: Putin accuses Turkish leadership of ‘aiding terror’" alt="‘Allah took their sanity’: Putin accuses Turkish leadership of ‘aiding terror’"
src="./wp-content/uploads/2015/12/56600a0dc46188c3078b45e7-150x150.jpg">
</a>
<br>
<a class="crp_title" href="./allah-took-their-sanity-putin-accuses-turkish-leadership-of-aiding-terror/">‘Allah took their sanity’: Putin accuses Turkish…</a>
</li>
<li style="padding-top: 10px">
<a href="./russian-warplanes-hit-1458-terrorist-targets-in-syria-over-past-week/">
<img width="150" height="150" onerror="this.onerror=null;this.src='./no-thumbnail.jpg';" class="crp_thumb crp_correctfirst" title="Russian Warplanes Hit 1,458 Terrorist Targets in Syria Over Past Week" alt="Russian Warplanes Hit 1,458 Terrorist Targets in Syria Over Past Week"
src="./wp-content/uploads/2015/12/1028392998-150x150.jpg">
</a>
<br>
<a class="crp_title" href="./russian-warplanes-hit-1458-terrorist-targets-in-syria-over-past-week/">Russian Warplanes Hit 1,458 Terrorist Targets in Syria Over…</a>
</li>
</ul>
<div class="crp_clear">
</div>
</div>
I think the coding it's pretty much simpler. Take a look at this snippet:
ul li {
width: 200px;
height: 200px;
border: 1px solid #000;
float: left;
list-style: none;
margin-top: 40px;
margin-right: 40px;
}
ul li:last-child {
margin-right: 0;
}
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
This is the base, now you can add the image and description. This ul will fit to container's width.
Hope it helps
I receive this error on w3c validator
"No p element in scope but a p end tag seen."
cript>
Butt In my code No end tag is present
Also Get this error
"Element style not allowed as child of element div in this context. (Suppressing further errors from this subtree.)
From line 277, column 6774; to line 277, column 6796
ar">#conte"
Here is my code
<div style="margin: 10px 0 50px; float: left;">[one_fourth]
<a href="https://midwesttinting.com/automotive-window-tinting/" target="_blank">
</a><img class="aligncenter wp-image-4713 size-full" src="https://midwesttinting.com/wp-content/uploads/2014/03/autotint.png" alt="Auto Window Tint Service Kansas City" width="160" height="160" />
<div style="float: left; text-align: center;">
<h3 style="margin: 0 auto; padding-bottom: 0;"><a title="Auto" href="#">Auto</a></h3>
<p style="float: left; text-align: left;">Midwest Tinting offers a full line of automotive window tinting films, all of which can help reject up to 99% of the sun's damaging ultraviolet rays.
[read_more text="Read More About Auto Window Tint" title="Auto Window Tint" url="http://midwesttinting.com/automotive-window-tinting/" align="right"]</p>
</div>
[/one_fourth]
[one_fourth]
<img class="aligncenter wp-image-4718 size-full" src="https://midwesttinting.com/wp-content/uploads/2014/03/home.png" alt="Home Window Tint Service Kansas City" width="160" height="160" />
<div style="float: left; text-align: center;">
<h3 style="margin: 0 auto; padding-bottom: 0;"><a title="Home" href="#">Home</a></h3>
<p style="float: left; text-align: left;">Whether your objective is to enhance beauty, increase comfort, increase security, or decrease utility costs, professionally installed window tint can help.
[read_more text="Read More About Home Window Tint" title="Home Window Tint" url="http://midwesttinting.com/home-business-tint/" align="right"]</p>
</div>
[/one_fourth]
[one_fourth]
<img class="aligncenter wp-image-4716 size-full" src="https://midwesttinting.com/wp-content/uploads/2014/03/business.png" alt="Business Window Tint Service Kansas City" width="160" height="160" />
<div style="float: left; text-align: center;">
<h3 style="margin: 0 auto; padding-bottom: 0;"><a title="Business Window Tint" href="#">Business</a></h3>
<p style="float: left; text-align: left;">Save money! Glass windows and doors represent the most critical area of heat gain in the summer and heat loss for your business in the winter.
[read_more text="Read More About Business Window Tint" title="Business Window Tint" url="http://midwesttinting.com/home-business-tint/" align="right"]</p>
</div>
[/one_fourth]
[one_fourth_last]
<img class="aligncenter wp-image-4717 size-full" src="https://midwesttinting.com/wp-content/uploads/2014/03/paint.png" alt="Auto Paint Protection Kansas City" width="160" height="160" />
<div style="float: left; text-align: center;">
<h3 style="margin: 0 auto; padding-bottom: 0;"><a title="Paint Protection" href="#">Paint Protection</a></h3>
<p style="float: left; text-align: left;">Midwest Tinting proudly offers factory trained installation of XPEL Paint Protection Film – a virtually invisible shield that prevents damage to your vehicle.
[read_more text="Read More About Paint Protection" title="XPEL Paint Protection" url="http://midwesttinting.com/xpel-paint-protection/" align="right"]</p>
</div>
[/one_fourth_last]
[clear]
[content_block bg_image="" max_bg_width="yes" bg_fixed="no" bg_position="center bottom" bg_repeat="repeat-x" parallax_scroll="no" bg_color="#293037" content_padding="30px 0 0" font_color="#FFFFFF" class="we-are-passionate-block"]
<div style="text-align: center;">
<h4 style="margin-bottom: 25px;"><span style="font-size: 36px; color: #fd7800; line-height: 1.2;">Need a team you can count on? Look no further!</span></h4>
<h5 style="margin-bottom: 20px;"><span style="font-size: 20px; color: #999999; line-height: 1.5;">Midwest Tinting's staff is the best around. We've been in the business since 1975 and continue to be #1 in customer service, product offering and workmanship.</span></h5>
</div>
<div style="font-size: 1.2em; color: #a9a9a9;">
<div class="one_half">
<h4 style="margin-bottom: 15px; color: #ffffff !important;"><strong>Why choose us?</strong></h4>
<ul class="list-2" style="color: #999999; font-size: 17px !important; margin-top: 20px;">
<li>Our people are the best</li>
<li>Our products are the best</li>
<li>We take pride in our craft</li>
<li>We stand behind every installation</li>
<li>Awesome warranties</li>
<li>International Window Film Association Accreditations
<ul>
<li>Brian - Master Accreditation Holder</li>
<li>Caleb - Master Accreditation Holder</li>
<li>Ron - Solar Control Specialist Accreditation Holder & Automotive Film Specialist Accreditation Holder</li>
</ul>
</li>
</ul>
</div>
<div class="one_half last_column" style="margin-bottom: 0;"><img class="aligncenter wp-image-4853 size-full" src="https://midwesttinting.com/wp-content/uploads/2014/03/mwtteampic.png" alt="Midwest Tinting Window Tint Service" width="500" height="333" /></div>
</div>
[/content_block]
[content_block bg_image="" max_bg_width="yes" bg_fixed="yes" bg_position="center bottom" bg_repeat="no-repeat" parallax_scroll="no" bg_color="#ffffff" content_padding="40px 0 40px" font_color="#777777"]
<div style="text-align: center;">
<h4 style="margin: 35px 0 25px;"><span style="font-size: 34px; color: #777777; line-height: 1.2;">Find Our Listings!</span></h4>
<h5><span style="font-size: 18px; color: #999999; line-height: 1.5;">We care what our customers think! Here are some places we frequent on the web. We'd love to hear your thoughts, too!</span></h5>
</div>
[clear]
[one_third]
<div style="margin-top: 30px;">
<img class="aligncenter wp-image-4557 size-medium" src="https://midwesttinting.com/wp-content/uploads/2014/03/IWFA-Revised-Logo-color-300x175.jpg" alt="International Window Film Association" width="300" height="175" />
</div>
[/one_third]
[one_third]
<div style="margin-top: 30px;">
<img class="aligncenter wp-image-4556" src="https://midwesttinting.com/wp-content/uploads/2014/03/SSA_Logo_250x250.png" alt="Angie's List Certified Midwest Tinting" width="200" height="200" />
</div>
[/one_third]
[one_third_last]
<div style="margin-top: 30px;">
<a title="Click for the Business Review of Midwest Tinting, Inc., an Auto Service - Window Tinting in Shawnee Mission KS" href="http://www.bbb.org/kansas-city/business-reviews/auto-service-window-tinting/midwest-tinting-inc-in-shawnee-mission-ks-88060017#sealclick"><img class="alignnone" style="border: 0px;" src="https://seal-kansascity.bbb.org/seals/blue-seal-293-61-midwesttintinginc-88060017.png" alt="Midwest Tinting, Inc. is a BBB Accredited Business. Click for the BBB Business Review of this Auto Service - Window Tinting in Shawnee Mission KS" width="293" height="61" /></a>
</div>
[/one_third_last]
<div style="float: left; display: block; height: 15px;"></div>
[/content_block]
[clear]
[content_block bg_image="https://midwesttinting.com/wp-content/uploads/2014/03/parallax-bg.jpg" max_bg_width="yes" bg_fixed="yes" bg_position="center bottom" bg_repeat="no-repeat" parallax_scroll="no" bg_color="#24292E" content_padding="50px 0 55px" font_color="#EEEEEE"]
<div style="text-align: center;">
<h4 style="margin-bottom: 20px;"><span style="font-size: 38px; color: #fff; line-height: 1;">Customer Reviews:</span></h4>
<h4 style="margin-bottom: 20px;"><span style="font-size: 24px; color: #fff; line-height: 1;">Join the <span style="color: #f95700;">thousands </span>of happy Midwest Tinting customers and see why they <span style="color: #f95700;">love</span> us so much!</span></h4>
<h5 style="margin-bottom: 10px;"><span style="font-size: 20px; color: #999; line-height: 1.5;"><em>"We spoke with Midwest Tinting on the phone and they were very helpful about explaining their product in detail. We were able to get an appointment within 24 hours. The process took about an hour and we left our car and came back later. VERY PLEASED with the professional job and the great look of the car! Midwest also gave us detailed instructions on the care of the windows."</em></span> <span style="color: #ffffff; font-style: normal; font-weight: bold; font-size: 85%;">-- Angie's List Review</span></h5>
</div>
<div style="text-align: center; margin-top: 20px;"><span style="font-size: 16px; font-style: italic;">More Customer Reviews...</span></div>
[/content_block]
<div style="margin-bottom: -35px;">
<p style="text-align: center;">[content_block bg_color="#FD7800" max_bg_width="yes" content_padding="35px 0" font_color="#FFFFFF" class="custom-padding"][slickr-flickr tag="autotint" thumbnail_size="small" align="center" descriptions="on" items="8"]</p>
<h3 style="margin: 10px 0px; line-height: 1.2; color: #ffffff; font-size: 27px !important; text-align: center !important;">What Are You Waiting For? Get a Quote TODAY!</h3>
[flat_button text="Contact Midwest Tinting" title="Get A Quote!" url="http://midwesttinting.com/contact/" padding="15px 20px" bg_color="transparent" border_color="#FFFFFF" border_width="2px" text_color="#FFFFFF" text_size="16px" align="center" target="_blank"]
[/content_block]
</div>
</div>
I am trying to get an image aligned right of some text/lists while having the image still be 100% in height and within the div. So far I've come close but the image is always overlapping the bottom of the div. Here's an example of what I'm trying to achieve:
Here's the code I've come up with so far, I've been using inline CSS but once I've figured it out it'll be in a separate CSS file. Any help is really appreciated, been trying to figure this out for days!
<div style="background: #000; width: 90%; color: #fff; margin: 0 auto; text-align:left; border: 1px solid #95403c;">
<p>
<img style="float: right; margin: 1px 1px 1px 1px; width: 355px;" src="" />
<div align="center">
<h1>Gold (proper style coming soon)</h1><br />
<clear>
<u>All Edited Videos Include:</u>
<ul style="display: inline-block; text-align: left;">
<li>60-90 Minute Interview Documentary</li>
<ul><li>B-Roll Footage</li>
<li>Incorporation of personal video clips (up to 15) and photographs (up to 125)</li>
<li>Interview Transcript</li></ul>
<li>1-2 Minute Individual Clips of Family Members </li>
<li>Up to 5 individuals will share a favorite memory with or express their love for the subject </li>
<li>5-10 Minute Prized Possession</li>
<li>The subject will share and describe their most prized possession</li>
<li>Behind The Scenes Photographs</li></ul>
</ul>
<clear>
<div style=" display: inline-block; vertical-align: top;">
<u>You Will Receive:</u>
<ul style="display: inline-block; text-align: left;">
<li>USB flash drive with all edited video files,<br /> pictures, and interview transcript</li>
<li>15 DVDs</li>
<ul><li>Customized printed DVDs</li>
<li>Customized menu and chapters</li>
<li>Hard cases with customized insert</li></ul>
</ul></div>
<div style="display: inline-block; vertical-align: top;">
<u>All Edited Videos Include:</u>
<ul style="display: inline-block; text-align: left;">
<li>Customized Titles</li>
<li>Customized Graphics</li>
<li>Music</li>
<li>Sound Design</li>
<li>Color Correction</li>
</ul>
</div>
<clear>
<br style="clear: both;" /></p>
</div>
Im cross browser testing and i have come across an issue in ie8 that doesnt show my background social sprites which work in all other browsers.
here is my code:
<!-- Social Icon List -->
<ul class="social-icons">
<li style="text-align: center;"><a title="Follow us on Twitter" href="#"><span class="social"> </span></a></li>
<li style="text-align: center;"><a title="Follow us on facebook" href="#"><span class="social fbook"> </span></a></li>
<li style="text-align: center;"><a title="Follow us on Youtube play" href="#"><span class="social gplay"> </span></a></li>
</ul>
<p style="text-align: center;">#DecadeInTheCity</p>
<!-- Ends Social Icon List -->
and the css:
.social{
width:32px;
height:32px;
margin-top:7px;
background:url(../../uploads/2014/11/social-icons.png)no-repeat;
display:inline-block;
background-position:left top;
text-indent:-5000px;
}
.entry-content-wrapper div li {
text-indent: 0;
display: inline-block;
margin: 3px;
}
.fbook{
background-position:-32px;
}
.instagram{
background-position:-64px;
}
.gplay{
background-position:-96px;
}
is there anything i can do to make it display?
thanks, Ricky.
You can use inline style then it will work for you.
Like below -
<li style="text-align: center;"><a title="Follow us on Twitter" href="#"><span class="social" style="background:url('../../uploads/2014/11/social-icons.png') no-repeat;"> </span></a></li>
I'm trying to place the text that's currently below the picture next to the image but I can't seem to figure it out. I tried a bunch of things but it screwed it up. I'm pretty sure this is an easy fix but I'm a noob. :D
http://jsfiddle.net/NmUaX/5/
HTML
<li class="post" >
<article class="in-column" style="height:300px;"> <p class="article-title" style="font-size:20px; padding-bottom:10px;">Grumpy Cat</p><img src="http://cdn.dashburst.com/wp-content/uploads/2013/01/Grumpy-Cat.jpg" border="0"; height="200" width="300">
<p class="excerpt" style="float:left;">Grumpy Cat, real name Tardar Sauce, is a female cat and Internet celebrity known for her grumpy facial expression. Her owner Tabatha Bundesen says that her permanently grumpy-looking face is due to feline dwarfism. <b>[READ MORE]</b></p>
<p class="excerpt">Born: April 4, 2012, Morristown, AZ</p>
</article>
</li>
</section>
</section>
CSS
article.in-column {
border-bottom: 1px solid #dddddd;
text-align: left;
padding-left: 25px;
padding-right: 25px;
padding-top: 15px;
}
article.in-column .excerpt {
color: #2f2f2f;
font-size: 11px;
margin: 0px;
padding-bottom: 5px;
}
p.article-title{
line-height: 19px;
margin: 5px 0px;
color: #151515;
font-weight:bold;
font-size:16px;
}
Use style="float:left;" on your image, not on your text.
Also, remove the stray semicolon in your img tag.
As shown here:
<img src="http://cdn.dashburst.com/wp-content/uploads/2013/01/Grumpy-Cat.jpg" border="0"; height="200" width="300">
JSFiddle
I think you need something like this:
<ul style="list-style:none; width:700px">
<li style="float:left; margin:5px;width:310px;">
<ul style="list-style:none">
<li>
<span style="font-size:20px; padding-bottom:10px;">Grumpy Cat</span>
</li>
<li>
<a href="http://yahoo.com" style="float:left;margin-right:5px">
</li>
<li style="float:left;width:380px;">
<ul style="list-style:none">
<li>
<span style="font-weight:700" >Born: April 4, 2012, Morristown, AZ</span>
</li>
<li>
Grumpy Cat, real name Tardar Sauce, is a female cat and Internet celebrity known for her grumpy facial expression. Her owner Tabatha Bundesen says that her permanently grumpy-looking face is due to feline dwarfism. <b>[READ MORE]</b>
</li>
</ul>
</li>
</ul>
see http://jsfiddle.net/NmUaX/15/