Cascading Style Sheets

Vertically centering text in megamenu dropdown

Hi there,
I'm trying to vertically centre the items in the drop-down of the mega menu on my website. I've tried vertical-align: middle; but that doesn't seem to work.

The site is www.sciencedemos.org/_dev/ and I'm using SJ Megamenu in Joomla.

Especially annoying is the "Reaction Rate, Equilibrium and Thermochemistry" topic in the "Chemistry" menu.

If someone could take a look and make a suggestion, that would be great.

Thanks,
Andrew

Carousel/Sliding text – how to stop auto cycle

Hey everyone
I’m new to all of this so forgive my ignorance, but I’m here to learn.

Unwanted Horizontal Scroll

Hi,

I have an unwanted horizontal scroll bar. I have included the html and css below. This is a work in progress so not perfect.

I have tried changing the widths on several elements without any change. It does the same in IE and Chrome.

<div id="container">
	<div id="header">
	<div class="header_right"></div>
 
		<h1>Put your site name here</h1>
  </div>
	<div id="navigation">
		<ul>
			<li><a href="#">Home</a></li>
			<li><a href="#">About</a></li>
			<li><a href="#">Services</a></li>
			<li><a href="#">Contact us</a></li>
		</ul>
	</div>

Get images in diff dimensions for diff div classes and also responsive as well, possible?

Hi,

Following challenge:

- I have a main article-headline image: 800x500px.
- I have a carousel which displays 3 article headline images at once.
- The CSS for those carousel-article-headline-image:

.carousel-article-headline-image {
	height:200px;
	width:300px;
}
[code]
 
and
 
[code]
.carousel-article-headline-image img {
    max-width:100%; 
    max-height:100%;
    margin:auto;
    display:block;
}
 
- I also use the main-article-headline-image in a grid menu with again above code but different div class and height and width px. 

Using percentages for height and width for images

Hi,

I have a Bootstrap-3 template and at first I had all my images with this code:

<img src="assets/images/1.jpg" alt="1" width="40%" height="2%" border="0">

That worked perfectly as my images were responsive to all device dimensions.

I then ran a HTML/CSS validator and all images where I used above code came back with error, a respectable 59 errors in total(I use a lot of images in my articles blog... Big smile ).

So why does above code does not validate??? Its sweet, easy, fast and effective.

Syndicate content