Hiển thị các bài đăng có nhãn Face Website. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn Face Website. Hiển thị tất cả bài đăng

Chủ Nhật, 20 tháng 4, 2014

website 2 cột ( hai bên không canh giữa )

---- CSS


#vb_box_center {
    padding: 1px 310px 1px 1px;
    position: relative;


link website: http://vietbao.com/p111/tin-ngay

Chủ Nhật, 13 tháng 4, 2014

Responsive Design: Make Your Website Mobile, Tablet, Desktop Compatible

Every client wants their website compatible with all platforms, whether user is accessing the site on a mobile phone, tablet, desktop computer or wide-screen. There are so many devices BlackBerry, iPhone, iPad, netbook, kindle..etc with different sizes and resolutions. It’s impossible to create a website version for each resolution. With Responsive Web Design technique, the website adapts the layout to the environment that it is being viewed in. It makes similar feelings for all platforms. You can see TechBrij as an example by resizing the browser window if you are on a desktop.

techbrij responsive theme Responsive Design: Make Your Website Mobile, Tablet, Desktop Compatible

Steps:

1. In your basic theme for desktop browsers, See each element of web page and think for tablet and mobile view. You can use notebook pen for complex layout.
2. Change element dimension from pixel value to percentage value and make some additional changes to make it similar on same environment.
techbrij responsive theme template Responsive Design: Make Your Website Mobile, Tablet, Desktop Compatible
3. Use Meta tag to disable default mobile scaling to display web page fit on screen.

<meta name="viewport" content="width=device-width, initial-scale=1.0">
4. We’re going to use CSS3 Media queries, but Internet Explorer 8 or older doesn’t support it. So use media-queries.js to add media query support in IE.


<!--[if lt IE 9]> 
<![endif]-->
 
5. Use CSS Media queries to define special CSS rules for different viewport width ranges/resolutions.




@media screen and (min-width : 750px) {
#content{float:left;width:60%;}
#sidebar{float:right;width:35%}
}
 
@media screen and (min-width : 481px) and (max-width : 749px) {
#content{width:95%;}
#sidebar{width:95%;}   
}
You can create separate CSS files for different Media queries.


<link rel="stylesheet" type="text/css" media="only screen and (max-device-width: 480px)" href="small-device.css" />
6. Make images, iframe width flexible.






img {
    max-width: 100%;
}
iframe, object, embed{
width: 100%;
}
7. Test it.
These are the basic steps to implement responsive web design. Alternatively, CSS Frameworks like Less Framework 4, MQFramework, Foundation, Skeleton..etc are used for rapid development.

link website:  http://techbrij.com/responsive-design-make-website-mobile-tablet-compatible
                    http://webdesignmaz.com/2013/10/html-responsive-website-templates.html

Thứ Tư, 9 tháng 4, 2014

IE( internet explorer ) không canh giữa được

****  chèn đoạn code này vào là ok
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">