Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Responsive CSS - Target 1024 x 768 Screen Size Only

I have built a responsive site, Works fine on all screen sizes barring the 1024 x 768 (Tablet Landscape)

I am looking for specific CSS (or am open for JS) to target a 1024 x 768 screen.

like image 290
StuBlackett Avatar asked Jan 16 '14 12:01

StuBlackett


2 Answers

Use for desktop:

@media (min-width:769px) and (max-width:1024px){
    // your code
}

Use for tablet:

@media (min-device-width:769px) and (max-device-width:1024px){
    // your code
}
like image 105
Venu immadi Avatar answered Oct 16 '22 12:10

Venu immadi


You can use media Query Like this

@media (min-width:769px) and (max-width:1024px) {
    //css stuffs here
}

This is the Way if you want Tablet landscape

like image 20
Dinesh Kanivu Avatar answered Oct 16 '22 14:10

Dinesh Kanivu