Click here to Skip to main content
15,890,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
None of the usual coding problem seem to be working when I try to move a text where it says "logo" to the left instead of the centre. I use brackets for coding and am doing it on .css

What I have tried:

This is the .css part:

.logo {
color: #000000;
text-align: left;
padding-left: 25px;
font-size: 16px;
font-weight: bold;
}

.logo > a {
text-decoration: none;
color: #000000;
}

This is the .html:

http://prntscr.com/k14kgd

This is how the website looks:

http://prntscr.com/k14e96

Please copy and paste the links into a new tab to view them.
Posted
Updated 2-Jul-18 5:17am
v2

Try this-
.logo {
color: #000000;
text-align: left;
padding-left: 25px;
font-size: 16px;
font-weight: bold;
width: 100%; /*this should do the trick.*/
}


Although I'd recommend you to use Bootstrap · The most popular HTML, CSS, and JS library in the world.[^]


KR
 
Share this answer
 
padding-left:2px;
text-align:left;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900