Screenshot of what is happening:
It is just a list item within an underordered list, this is happening in IE7 and nowhere else.
<ul>
<li>Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text. Filler text.</li>
</ul>
.fancybox-entry.computer-policy li {
float:none;
width:100%;
list-style-type:disc;
margin-bottom:10px;
}
.fancybox-entry.computer-policy ul + p {
margin-bottom:20px;
}
.fancybox-entry.computer-policy ul {
margin:5px 0 10px 25px;
}
Any help as to why it is doing that and a fix is appreciated.
You can add padding: 0 to the ul element to force it to stick to the left border of the parent nav element.
If you want to make this navigational unordered list horizontal, you have basically two options: Make the list items inline instead of the default block. .li { display: inline; } This will not force breaks after the list items and they will line up horizontally as far as they are able. Float the list items.
The <marquee> tag in HTML is used to create scrolling text or image in a webpages. It scrolls either from horizontally left to right or right to left, or vertically top to bottom or bottom to top.
Set the position of div at the bottom of its container can be done using bottom, and position property. Set position value to absolute and bottom value to zero to placed a div at the bottom of container.
It appears that the width CSS property triggers hasLayout for the li
element in IE7. First try removing the width:100%;
declaration to make sure the bullet appears in the correct place. If you can't do without the width property, you can use position: relative;
and vertical-align: top;
to move the bullet back into place, as outlined at http://www.gunlaug.no/tos/moa_26.html.
Note that the code on that page uses hacks to target IE6 and IE7. I recommend using conditional comments instead, like so:
<!--[if IE 7]>
<style type="text/css" media="screen">
/* IE7-specific CSS here */
</style>
<![endif]-->
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With