About
Pricing
Community
Teams
Start Free Trial
Log in
MOSTAGHASSI
asked on
9/28/2016
While text-align is right padding-right does not affect,why?
Hello,
I have a div and its css but padding-right does not affect,you can see its fiddle in this link:
https://jsfiddle.net/jamsh
idi/fj41mt
5w/
Thanks for your help
CSS
4
2
Last Comment
MOSTAGHASSI
8/22/2022 - Mon
Terry Woods
9/28/2016
It seems that the width set to 100% adding padding to the right pushes the width of the div out to be larger than the viewport width.
See what it looks like now that I've added a border:
https://jsfiddle.net/85z6toqm/
SOLUTION
CWareIndia
9/28/2016
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
pradeep kumar
9/28/2016
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
MOSTAGHASSI
9/28/2016
ASKER
Thanks for both solutions.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
See what it looks like now that I've added a border:
https://jsfiddle.net/85z6toqm/