807,306 questions
1
vote
0
answers
30
views
text in table cell with image is higher
I have this html code
<table style="font-size:10px">
<tr>
<td style="border:1px solid;padding:0">XXX <svg style="vertical-align:middle" width=20px height=20px viewBox="0 0 ...
-1
votes
0
answers
37
views
Iframes positioning [closed]
I am currently adapting a site to mobile design. The left navigation bar is separated from the rest of the page with an iFrame. I want to show and hide the left navigation bar with a button – this ...
Best practices
0
votes
2
replies
49
views
CSS transform (scale) vs. zoom
I use
<div class="flex">
<div class="box">
<img [...]><br>
ab
</div>
<div class="box">
<img [......
1
vote
1
answer
80
views
How to align the data upload button with other types of button?
I am writing an R Shiny app and use CSS to format the buttons on the header and footer of the page. I am running into a sticky situation with the Upload button, where no matter how I configure, it ...
0
votes
0
answers
104
views
How to recreate star/pentagram shape using SVG and CSS [closed]
I am trying to recreate Ethopia flag using SVG and CSS but I am unable to do the middle part of the flag – a star pentagram shape.
The star inside the circle is not appearing as expected.
body {
...
-1
votes
0
answers
72
views
Why are my CSS class styles not applying even though the class name is correct? [closed]
I am trying to apply simple CSS to a paragraph but the styles are not being applied. The CSS file is in the same folder as the HTML file.
Here is the minimal code:
<!DOCTYPE html>
<html>
&...
1
vote
2
answers
78
views
How to prevent rerender of identical component in child?
I'm trying to make a progress bar that has a transition animation. Think: a multi-page wizard, and when you advance to the next page the progress bar animates to the next step.
When the progress bar ...
0
votes
0
answers
97
views
Set gap between list marker and content
Take the following HTML:
<ol>
<li>one</li>
<li>two</li>
<li>three</li>
</ol>
Is it possible to set the gap between “1.” and “one”, which is the ...
1
vote
1
answer
41
views
CSS single property auto-indent in VSCODE [closed]
How to configure VScode to keep CSS rules with only one property on a single line when autoformatting? Here is the expected result :
.p-auto { padding: auto !important; }
.px-0 {
padding-left: 0 !...
-3
votes
0
answers
36
views
All browsers (on multiple computers) are loading older versions of style.css for my footer [closed]
Out of the blue today, I noticed that the css for my footer had changed. When I used the inspector, I saw that an older version of style.css had been loaded (for the footer only). The latest version ...
0
votes
0
answers
26
views
how to change body section style using checkbox in header tag section in a html page [duplicate]
I want to change background color of "maincontent" div element to red when I clicked check box, which is in header tag of my HTML page. please give any idea how to do that.
<!DOCTYPE html&...
-2
votes
0
answers
44
views
Why is there a space present on the left side of my div? [closed]
HTML:
<div id="div-area">
<p id="title-div1">
Find pages with...
</p>
<label>
all these words:
<input type="text" name="...
Advice
0
votes
0
replies
54
views
css/react/mui border radius like
Graphic designer designed this component that should display forms and messages like an auth form...
I'm a bit confused on how should I code the top right border... I thought a simple border-radius ...
-3
votes
0
answers
35
views
Why is my web display not full when I add aos js? (bootstrap5) [closed]
I'm a junior web developer and I want to create a portfolio website using Bootstrap 5. When it's finalized, I want to add animations using AOS JS. However, when I add these, the website doesn't ...
Advice
1
vote
2
replies
120
views
HTML static webpage - how would I have any of the files present in a particular directory be selected in a src
How would I go about, in an HTML webpage, having a random file in a specific directory be selected in a src? My intent is to have a randomized audio file autoplay whenever I open any webpage on my ...