randomuser1 randomuser1 - 1 year ago 104
CSS Question

How can I set the correct position of the text in CSS?

I have the following css code:

position: fixed;
bottom: 21px;
text-align: right;

#content h1{
font-size: 1.5vw;
text-align: right;

and html:

<div id="content">

here's jsfiddle. I cannot make the text to be displayed on the right side, it's only on the left side... How can I fix it? Thanks.

Answer Source

Set container's (#content) width css property to 100%.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download