Avatar of hankknight
hankknight
Flag for Canada asked on

Aliging h4 with CSS

<style>
body {
    color:#000000;
    margin-left:35px;
    margin-right:25px;
}

#footer{
    position:absolute;
    left:0px;
    bottom:0px;
    margin-bottom:10px;
    margin-left:25px;
    margin-right:25px;
}



h4{
   text-align: right;
}
</style>
<body>
<div id="footer"><h4>http://work.apison.com/michael/cms2/</h4></div>
</body>
CSS

Avatar of undefined
Last Comment
Mark Steggles

8/22/2022 - Mon
Mark Steggles

Greetings hankknight,

If you want the h4 to align right, add text-align:right to the #footer not the h4

Regards
ASKER CERTIFIED SOLUTION
GrandSchtroumpf

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Mark Steggles

> If you want the h4 to align right, add text-align:right to the #footer not the h4
> Why would that help?

Oops, I didnt notice that a width was missing and I obviously didnt check the code
hankknight

ASKER
Thank you both, GrandSchtroumpf, your explanation was very helpful.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
GrandSchtroumpf

You are welcome.
Cheers.
hankknight

ASKER
Mark Steggles

No probs

GrandSchtroumpf is the man (or woman?)
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.