Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,474 members, 7,808,712 topics. Date: Thursday, 25 April 2024 at 03:51 PM

If I Design A Site, How Do I Make It Phone Friendly - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / If I Design A Site, How Do I Make It Phone Friendly (1066 Views)

Can I Design Mobile Apps Without Coding Knowledge? / Where Can I Design A Company's Logo And Download It Free Online? / How Do I Design A Computerised Stock (inventory) Card? (2) (3) (4)

(1) (Reply) (Go Down)

If I Design A Site, How Do I Make It Phone Friendly by AltarBoy1: 1:31pm On Jun 02, 2015
I have a website that trying to develop, though am still an amatuer. now, the site isn't all that good wen viewed with phone. the information seems to be scattered around. plz, how do I mk it look fine in phone. I use HTML n css to design it.
Re: If I Design A Site, How Do I Make It Phone Friendly by Nobody: 1:50pm On Jun 02, 2015
you use media queries i.e you target specific phone screen sizes...

for example,say you have a tag with a postTitle class ,your normal css would be

.postTitle {
font-size : 19px;
}


the font size would be too big on smaller screens so,lets rewrite that

@media (max-width: 340px) {
.postTitle {
font-size : 12px;
}
}




you would also need to write for other screen sizes ,though there are ways you can target a particular screen size range( min screen size must be 340px while it must be greater than 450px)...

please take a look at this links http://cssmediaqueries.com/what-are-css-media-queries.html
http://cssmediaqueries.com/overview.html
https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries





in addition,you might also want to look at CSS frameworks,they already have you covered with media queries 95%,the remaining 5% can be ignored grin grin grin grin

2 Likes

Re: If I Design A Site, How Do I Make It Phone Friendly by herald9: 3:49pm On Jun 02, 2015
Jregz:
you use media queries i.e you target specific phone screen sizes...

for example,say you have a tag with a postTitle class ,your normal css would be

.postTitle {
font-size : 19px;
}


the font size would be too big on smaller screens so,lets rewrite that

@media (max-width: 340px) {
.postTitle {
font-size : 12px;
}
}




you would also need to write for other screen sizes ,though there are ways you can target a particular screen size range( min screen size must be 340px while it must be greater than 450px)...

please take a look at this links http://cssmediaqueries.com/what-are-css-media-queries.html
http://cssmediaqueries.com/overview.html
https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries





in addition,you might also want to look at CSS frameworks,they already have you covered with media queries 95%,the remaining 5% can be ignored grin grin grin grin
you got a mail
Re: If I Design A Site, How Do I Make It Phone Friendly by Nobody: 4:06pm On Jun 02, 2015
herald9:
you got a mail
gotcha bro..replied already
Re: If I Design A Site, How Do I Make It Phone Friendly by 212blaze(m): 4:14pm On Jun 02, 2015
use bootstrap. The lovely felas have done all that for you. Learn their framework. Its pretty straightforward.
Re: If I Design A Site, How Do I Make It Phone Friendly by AndySawa: 4:41pm On Jun 02, 2015
Pls i also need help in this responsive design issue. Can You Elighten or email me any useful file or tutorial and i'm still tryin to Understand bootstrap, but it's still a bit confusing. Thanks..
Re: If I Design A Site, How Do I Make It Phone Friendly by spoilerx: 6:55pm On Jun 02, 2015
Re: If I Design A Site, How Do I Make It Phone Friendly by 212blaze(m): 7:27pm On Jun 02, 2015
AndySawa:
Pls i also need help in this responsive design issue. Can You Elighten or email me any useful file or tutorial and i'm still tryin to Understand bootstrap, but it's still a bit confusing. Thanks..

you apply bootstrap css the way you apply normal css. The difference is that they have written alot of css that looks good. What you need do is go to getbootstrap.com and find out whats available. Id post a tutorial maybe. But there are so many in google.
Re: If I Design A Site, How Do I Make It Phone Friendly by AltarBoy1: 2:55pm On Jun 03, 2015
Jregz:

Thanks a lot bro, though am still I novice, I didn't fully comprehend you reply. But am making more research with the link you drop. plz do you have any ebooks that I can use to enhance and programing skill. videos also will be appreciated.
Re: If I Design A Site, How Do I Make It Phone Friendly by AltarBoy1: 2:56pm On Jun 03, 2015
212blaze:


you apply bootstrap css the way you apply normal css. The difference is that they have written alot of css that looks good. What you need do is go to getbootstrap.com and find out whats available. Id post a tutorial maybe. But there are so many in google.
plz, can u help me with a more precise book on thus topic.
Re: If I Design A Site, How Do I Make It Phone Friendly by 212blaze(m): 3:35pm On Jun 03, 2015
AltarBoy1:
plz, can u help me with a more precise book on thus topic.

this website would do the trick

http://www.w3schools.com/bootstrap/
Re: If I Design A Site, How Do I Make It Phone Friendly by AltarBoy1: 7:12pm On Jun 03, 2015
212blaze:


this website would do the trick

http://www.w3schools.com/bootstrap/
thanks a lot..

(1) (Reply)

Teach Yourself Computer Programmes And Web Design In Easy/right Way / In Need Of Oracle Database Management Training Video? Get In Here! / 3 Open Source Alternatives To Autocad

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 17
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.