css - Website display incompatibility with smartphones -


i have web page designed have menu bar on top result of image repeated on x-axis.

width: 900px; margin: 0 auto; background-image: url(/images/white-fade-short.png); background-repeat: repeat-x; 

the menu links mentioned on above mentioned image background.this website renders fine on desktop. when loaded on smartphone image of bar being rendered more actual webpage size , scrolls particular length . how can fix this. following css properties have been set make compatible smartphone display :

@media screen , (max-width: 1024px){         img.bg {             left: 50%;             margin-left: -512px; }     } 

is code creating problem in way?

you need take @ tutorial http://webdesignerwall.com/tutorials/css3-media-queries

it'll you


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -