?">
    /    Sign up×
Community /Pin to ProfileBookmark

remove inner style:
?

Assume I have loaded a webpage which contains multiple <div> elements which contain inner style definitions like

`<div class=”foobar” style=”/*! padding-bottom:22% */”>?`

1.) Why is the inner style definition enclosed in /*!……..*/

Never seen that before.

2.) How can I set the “padding-bottom” value to 10px for all <div> elements which contain a padding-bottom definition inside the tag itself (=NOT in separate CSS stylesheet)?

3.) How can I set the “padding-bottom” value to 10px for all <div> elements which have a class=”foobar”)?

`div.foobar { padding-bottom: 10px !important”; }`

seems not to help since the inner style=”……” definition has always a higher priority than the outside CSS stylesheet definition even when it has an !important attribute.

4.) Alternatively: How can I remove the whole style=”……” definition”?

to post a comment
CSS

0Be the first to comment 😎

×

Success!

Help @pstein spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...