.Net developer
Mostrando postagens com marcador css. Mostrar todas as postagens
Mostrando postagens com marcador css. Mostrar todas as postagens

Centering Block Element - CSS Discuss



Centering Block Element - CSS Discuss

IE maldito. Fenômeno do CSS

O caso:
Uma página simples, em HTML, tem o design deformado de acordo com o conteúdo de uma div. Veja o código completo: http://snipt.org/Lox

O problema
Quando o div "subheader_wrapper" tem um conteúdo...

1.) ...menor ou igual a 5 caracteres, a página é exibida conforme abaixo. O div, apesar de ser invisible, parece ocupar espaço na tela (espaço verde piscina) e no final da tela ainda!





2.) ...entre 6 e 7 caracteres, ocupa um espação na tela, no meio!





3.) ...maior ou igual a 8 caracteres, some! Faz o comportamento esperado desde o início: invisible. Pq?





Qual é o segredo do tableless que esta página não está seguindo/fazendo?

ps: Acho q não preciso falar q esse "bug" do tabless/css acontece só no IE.





Editor WYSIWYG

Altura de div em css

Definindo altura auto-redimensionáveis (caso tenha conteúdo em excesso). O truque é necessário pois o IE não funciona direito!


min-height: 100px;
height: auto !important;
height: 100px;

ecommerce

Meu sistema de e-commerce, o último que faço.
Somente programação:

Design implementado, totalmente com CSS:

Propriedades CSS x JavaScript

Propriedade - CSS Referência - JavaScript
background background
background-attachment backgroundAttachment
background-color backgroundColor
background-image backgroundImage
background-position backgroundPosition
background-repeat backgroundRepeat
border border
border-bottom borderBottom
border-bottom-color borderBottomColor
border-bottom-style borderBottomStyle
border-bottom-width borderBottomWidth
border-color borderColor
border-left borderLeft
border-left-color borderLeftColor
border-left-style borderLeftStyle
border-left-width borderLeftWidth
border-right borderRight
border-right-color borderRightColor
border-right-style borderRightStyle
border-right-width borderRightWidth
border-style borderStyle
border-top borderTop
border-top-color borderTopColor
border-top-style borderTopStyle
border-top-width borderTopWidth
border-width borderWidth
clear clear
clip clip
color color
cursor cursor
display display
filter filter
font font
font-family fontFamily
font-size fontSize
font-variant fontVariant
font-weight fontWeight
height height
left left
letter-spacing letterSpacing
line-height lineHeight
list-style listStyle
list-style-image listStyleImage
list-style-position listStylePosition
list-style-type listStyleType
margin margin
margin-bottom marginBottom
margin-left marginLeft
margin-right marginRight
margin-top marginTop
overflow overflow
padding padding
padding-bottom paddingBottom
padding-left paddingLeft
padding-right paddingRight
padding-top paddingTop
page-break-after pageBreakAfter
page-break-before pageBreakBefore
position position
float styleFloat
text-align textAlign
text-decoration textDecoration
text-decoration: blink textDecorationBlink
text-decoration: line-through textDecorationLineThrough
text-decoration: none textDecorationNone
text-decoration: overline textDecorationOverline
text-decoration: underline textDecorationUnderline
text-indent textIndent
text-transform textTransform
top top
vertical-align verticalAlign
visibility visibility
width width
z-index zIndex

Altura de Image Button (C#) por CSS

Objetos criados no html, como o DIV, precisam ter a seguinte definição
em sua classe CSS, para a altura ser respeitada tanto no IE como no
Firefox ( em função da falta de padrão do IE! ):

min-height:20px;
height:auto !important;
height:20px;

Sim, você tem que escrever estas 3 linhas para definir altura por CSS,
quando você quer que a altura do objeto seja respeitada, ou seja, se
tiver conteúdo dentro do DIV, o objeto é extendido naturalmente, ao
invés de "comer" o conteúdo gerado dinamicamente, por exemplo, dentro
dele.

Porém, se o objeto for um Image button do .Net (framework 2.0), esta
regra não deve ser aplicada. Basta a propriedade height do CSS!

Toda regra tem uma exceção....