HTMLPadding_or_Margin

Finds the padding or margin from a style statement for an HTML tag.
Passing StyleString as the string starting from "Style=" from inside any html tag
And returns left, right, top, or bottom padding or margin whichever found first using same CSS3 method based on caller request in ReturnPadding_TRBL.

Edit 2024-02-14: Fixing scenario of searching nested margin of main tag.
Edit 2024-07-18: Fixing issue if both padding or margin found multiple times, will prioritize padding, return first non-zero found.
Edit 2024-07-29: Fixing multiple Margins found in main html and any nested html tags inside.
Edit 2024-08-10: Adding the text-indent tag property.

CodeFunctionName What is this?

Public

Tested

Original Work

Access is limited.

Login here using your Linkedin account. to see or download code.

No registration, not another password to remember, login using your Linkedin account and have access to all public codes in Mydev.net

Linkedin Login

StyleString, Optional ReturnPadding_TRBL = "left"

Views 457

Downloads 138

CodeID
DB ID