Skip to main content
3 votes
1 answer
229 views

I am working on a Angular 18 project. My org has the strict CSP policy and no unsafe-inline is allowed. As documented by Angular here, while rendering the index.html, I generate a nonce per request ...
Saurabh Tiwari's user avatar
0 votes
4 answers
68 views

A CMS generates inline styles with many whitespaces in them, which makes it difficult to traverse and select element via dev tools. An example of that would be: style=" --...
Runnick's user avatar
  • 745
1 vote
1 answer
79 views

I'm trying to change the width of an element using JavaScript. This doesn't throw any error. It instead silently ignores the code. pageSettings = { 'padding': 16 } document.querySelector('#...
stysan's user avatar
  • 363
1 vote
2 answers
568 views

What's that difference between using [ngStyle] and [style.<attr>] for inline styling components in Angular?
Gangula's user avatar
  • 7,800
0 votes
0 answers
240 views

So I'm working with PrimeNG's panel menu component, and I need to apply some styles directly using Tailwind classes instead of inline styles or external CSS. PrimeNG PanelMenu component This is my ...
Br0wn's user avatar
  • 644
-3 votes
2 answers
72 views

I have read the [W3Schools][1] and they said display: inline-block, the top and bottom margins/paddings are respected, but with display: inline they are not. But, I have try to set the margin and ...
Buzusima's user avatar
2 votes
0 answers
44 views

Who wins from performance perspective (only) INLINE STYLES <div style={{backgroundColor:"#fff"}}>content</div> <div style={{backgroundColor:"#fff"}}>content</...
johnny shepherd's user avatar
0 votes
0 answers
57 views

My email is showing images correctly in all mailboxes and platforms except Web (browser) Outlook, where they are simply rendered blank. The "image" is still clickable, and takes up space on ...
Paul 's user avatar
  • 289
0 votes
1 answer
280 views

I am using CKEditor 5 with a custom build to include the fonts and indent modules into the basic build that exists on github. My web environment CSP doesn't allow any inline styles or javascript. ...
glennr's user avatar
  • 1
0 votes
1 answer
229 views

I want to add Inline SVG in inline CSS, but it is not working. <div style="background: url(data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20version%3D'1.1'%...
10may's user avatar
  • 328
0 votes
2 answers
86 views

Actually I'm creating newsletter design which is two columns, and it has images, title and text on each column respectively. Currently, facing layout styling issues where I can't able to handle long ...
NeonH's user avatar
  • 75
0 votes
1 answer
67 views

I'm facing an issue with setting a background image using a CSS class with embedded CSS. Here's the CSS code I'm using: .test-background { background-image: url('/img/roads.jpg'); background-...
Sarani's user avatar
  • 1
0 votes
1 answer
234 views

The first step to open the menu works. But when i want to close it again it won't remove the inline style. Tried different ways to get the result but nothing of it will work. CSS has just some text-...
MrJoky's user avatar
  • 395
0 votes
2 answers
42 views

I have this problem where the image just won't be displayed as the background of the div. even though the image is displayed normally when put in an image tag. <div className="card text-dark &...
Mahmoud's user avatar
0 votes
1 answer
1k views

Im having an issue when implementing CSP for styles and script on an existing laravel 6 project, i've manged to follow a with one of the guidance to name: spatie/laravel-csp content-security-policy....
Abdulaziz Hamdan's user avatar

15 30 50 per page
1
2 3 4 5
28