I'm trying to create css buttons by using the following html markup:CSS - Neden <a href> elements?
<a href="access.php" class="css_button_red">Forgot password</a>
But it ends up being not bigger than the text in the middle. Even though I've set the class's height and width.
You can preview the problem here btw, www.matkalenderen.no Notice the first button, that's a form button and it's using it's own class. At first I tried to use the same class on the css button as well and the same problem appeared, so I tried to separate them into their own classes. In case there was some kind of crash. But it didn't matter anyway.
What am I missing here?
Haha! Inline-block benim için bir çok şeyi sabitledi! Sadece görüntüleme kullanırken: blok, tüm düğme yanlış hizalanmış. Ama şimdi, form düğmesiyle aynı akışı takip ediyor :) Thanx! –
Satır içi bloğa dikkat edin. Bu tarayıcılar tarafından tek biçimli olarak desteklenmez. Analizlerinizi öğrenin ve siteniz için tüm istatistiksel olarak önemli tarayıcılarda iyi görüntülendiğinden emin olun. Görünüşe göre, IE 6 ve 7'nin her ikisi de katı satır içi blok desteğinden yoksundur. Bkz. Http://www.quirksmode.org/css/display.html#t03 – kingjeffrey
@kingjeffrey Quirksmode, IE6 & 7'nin, yerel olarak satır içi olmayan öğelere uygulandığında satır içi blokla ilgili sorunları olduğunu belirtir. Bu nedenle, bir "" için uygulandığında sorun olmaz. – nickf