Link to home
Start Free TrialLog in
Avatar of hankknight
hankknightFlag 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>
Avatar of Mark Steggles
Mark Steggles
Flag of United States of America image

Greetings hankknight,

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

Regards
ASKER CERTIFIED SOLUTION
Avatar of GrandSchtroumpf
GrandSchtroumpf

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
> 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
Avatar of hankknight

ASKER

Thank you both, GrandSchtroumpf, your explanation was very helpful.
Avatar of GrandSchtroumpf
GrandSchtroumpf

You are welcome.
Cheers.
No probs

GrandSchtroumpf is the man (or woman?)