Difference between float and align property in CSS

后端 未结 5 1825
春和景丽
春和景丽 2020-12-13 18:30

I am designing a website for my client and do not have much experience in web design and CSS. I also want to design it in standard CSS way.

The question is I am qui

5条回答
  •  感情败类
    2020-12-13 19:15

    First I would like to suggest that you refer to the Head First series of CSS and HTML by O'Reilly publications. This is a must read book for those new to designing.

    So, the float property is used to move a lot of blocks (for example your sidebar, your content area etc.) and the HTML align thing you are talking about, you can do the same in CSS in this way.

    .test{
    text-align: right; 
    }   
    

    The above code mentioned will be CSS and equivalent HTML code will be.

    This text will be aligned from right

    For the time being refer to O'Reilly head first with HTML AND CSS, will help you a lot.

提交回复
热议问题