Hi im wondering whether i use px or % for responsive design. I already used px but its not responsive enough because its size are fixed can someone tell me what is better to use for responsive design? im new to html and css, and im creating a student portal for my thesis.
here are the examples of my project i used px for sizing some of the elements here. I think there are other ways to do this and it's hard doing the media queries because you will do it one by one. Can someone give me ideas?
and here is the 480px
here is the example of my queries...
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
.img-responsive{
width: 230px;
height: 55px;
padding-left: 20px;
padding-top: 5px;
}
.footer{
height: auto;
}
.connect{
padding-left: 70px;
}
.contact{
padding-left: 90px;
padding-right:50px;
padding-top: 70px;
}
.visit{
padding-top:40px;
padding-left: 110px;
}
p{
padding-left: 40px;
}
.twitter-hover {
background-image: url('images/twitter-hover.png');
margin-left: 70px;
}
.social-slide{
margin-bottom: 50px;
}
hr.carved {
margin-top: 4em;
}
.copyr{
padding-left: 20px;
padding-right: 10px;
}
}