3,763 questions
0
votes
0
answers
7
views
In node js docx library im trying to generate a word document. if i change PageMargin, the headers and footers also got affected by it.what to do?
enter image description here
sections: [{
properties: {
page: {
margin: { top: 0, // 1 inch
left: 1440, // 2 inches (shifts content right)
right: 1440, // 1 inch (affects ...
-1
votes
0
answers
27
views
Is it possible to style the padding/margins of an element with CSS? [closed]
Just recently got back into web design and development, as I've been out of this field for quite some time! I was wondering if there is a any way to style the padding or margin of an element with a ...
1
vote
1
answer
55
views
Mysterious Vertical Spacing
Where is the vertical space coming from when I have a single character inside a span with no margin or padding, and a line-height of 1?
Shouldn't the "X" character here be touching the ...
0
votes
1
answer
37
views
How to position a sticky div to stick to the edge within a scrollable div?
In Firefox, an element styled with position: sticky and a negative margin-inline-end doesn't stick at the expected position within its parent when scrolling. This behavior deviates from Chrome, where ...
1
vote
2
answers
139
views
Margin Reset to 0 in 1 Second
When you click the button once the transition is 300 seconds.
What i'm trying to do is when you click the button twice Reset it in 1 second
So what is happening is when you click the button once ...
0
votes
1
answer
35
views
How to center ion-grid in ion-content?
In a site with using CDN version of Ionic I got a problem.
I have the following working :
<ion-grid>
<ion-row >
<ion-col>
ABC
</ion-col>
<ion-col>
...
0
votes
1
answer
48
views
Flutter NestedScrollView with SliverAppBar Leaves Extra Space Underneath
Title:
Flutter NestedScrollView with SliverAppBar Leaves Extra Space Underneath
Body:
I'm using a NestedScrollView with a SliverAppBar that has a search bar as its title. The app bar collapses ...
0
votes
0
answers
25
views
How do delete blank spaces around your border? [duplicate]
I'm new to web design I have been trying to teach my self. For some reason I cant figure out how to get rid of the blank margins around my border with out having to change the whole pages background ...
0
votes
0
answers
80
views
Understanding boundary margin property of the interactive viewer
I want to create a scalable/panable view in flutter but I want to set a minimum scale, so that the user doesn't 'loose' the view by accidentally making it to small/pans it out of bounds. I decided to ...
1
vote
1
answer
31
views
CSS code that sets margin for content when printing but allows a full-page bacground-image
I'm creating a small webpage that also has a print function. I'm having some problems with page breaks and margins. If i set the margins in @page margin to 2cm the document prints fine, but the ...
0
votes
1
answer
56
views
Adjusting elements in a flexbox doesn't work properly
I'm trying to adjust the filter dropdowns within the flexbox container. But for some reason the first two columns in the first row always are shifted. It's driving me crazy. I also tried using gap ...
0
votes
1
answer
57
views
Positioning item-count circle on shopping-cart icon
I am trying to position item-count circle on the shopping-cart icon. When I set margins to adjust the item circle it goes out of the box. see image below:
Here is the code of shopping-cart icon with ...
0
votes
1
answer
56
views
How can I reduce the space between navigation bar and a title?
This is my template for blog posts. When the window you are viewing the post in is maximized, the spacing between nav and post-title is far too much. I want to reduce the space and keep it consistent.
...
0
votes
1
answer
92
views
How can I override the margin from a parent element on a child element in CSS (class and id)?
I'm working on a section of a site where I have six boxes grouped together three on the top and three on the bottom, and I wanted to give them all a margin to separate them, but then I want the top ...
0
votes
1
answer
39
views
How to make list items in a slide menu of a website be on top of each other?
I've been trying to fix this issue for days now, nothing seems to work and I'm beginning to think of scratching the whole project and start over again.
I decided to add a slide hamburger menu to my ...
0
votes
2
answers
128
views
How to remove margin on flutter IconButton or other Buttons?
The Default Margin of Buttons is adaptive according to the PlatForm they are used.
On Desktop Apps these seems to have no marging and on android, ios it has margin, how to fix this
I have tried ...
-1
votes
1
answer
193
views
Bootstrap 5 - mt-5 overrides mt-md-0 on ≥768px screen size
on medium and below medium screen sizes i have 4 cols that will be above each others, i need to give 2 cols some margin on medium and below medium screen sizes and remove it on above medium screen ...
0
votes
1
answer
55
views
Why does ggplot have margin between y=0 and x-axis?
By default, ggplot2 figures include a small margin between the plot area and the axes such that, for example, the x axis intersects the y axis just below y=0. I know how to remove this. My question is ...
0
votes
1
answer
267
views
How do I add padding around a PyQtGraph PlotWidget?
I am trying to add padding around a PlotWidget as the default settings are extremely tight. However, the strategies I am trying to take are not working. The default padding is seen below.
default ...
1
vote
2
answers
69
views
unnecessary bottom margin is being added to the div
In my wp site, there is a registration page. I have placed a reg form in it.
Page link --> Reg Page
the form was placed in a div which contains class .form-contain.
.form-contain {
display: ...
1
vote
1
answer
36
views
Need to remove this mystery padding in between background and border
Need help removing this mystery padding in between a border and its background. In the preview it looks fine, but it exports with that weird padding inside the frame.
Here's the code:
<div ...
0
votes
3
answers
70
views
Html <div> leaves unexpected margins [duplicate]
I am new to HTML and CSS. I was experimenting with displaying <div> -s side by side. I noticed that simply adding a div inside the body will display with unexpected margins.
I tried messing ...
-1
votes
2
answers
62
views
how to properly give spacing to input fields of a form?
I have been unable to give spacing betweenb the column of texts and input fields in a form. I want my web page to look likle my design in the first image but i got the second image below that as my ...
0
votes
0
answers
20
views
JSPDF multiplies the margin established on each page
JSPDF multiplies the margin established on each page, for example if I put 40 at the top, then on each page it increases 40 more.
my code:
y = ((doc.getNumberOfPages() - 1) * doc.internal.pageSize....
0
votes
0
answers
99
views
Extra space on the right side before the actual margin in Microsoft excel
my worksheet content in excel is fully distributed (width wise) and is touching the page breaks (left & right) which are dashed lines . The thing that I am not getting is that the content is fully ...
0
votes
2
answers
51
views
WPF - cannot remove padding/margin around DataGrid cells
I try to modify that white margin around my datagrid cells
(I hide the cell H/V headers, also , sorry for hiding the text in the cells, it is company property related stuffs)
Here is how I define the ...
0
votes
2
answers
71
views
Same "margin-top" & "margin-bottom" for flexible and fixed Containers
I'm working on a test website right now to play around with the things I learned in HTML and CSS.
My goal this time was to create a container two other seperated left and right.
The left container ...
3
votes
1
answer
72
views
CSS negative margins, why overlapping on background not in content [duplicate]
When applying a negative margin to an element why the text 1 over the background of child 2 and behind the text, I thought it will be behind the whole box.
html {
font-size: 40px;
font-weight: ...
1
vote
1
answer
41
views
ggplot2 text in top margin, flipped coordinates
I would like to add some text to a plot in the top margin, but all the solutions I could find messed up the flipped coordinate system after using coord_flip()
var1<- c("ab", "cd"...
0
votes
0
answers
32
views
A <div> shifts down when a margin is added to a child <p> element [duplicate]
I have a <section> with a background color, and this element is entirely covered by a translucent <div>. Within the <div>, I have a paragraph with a top margin. Here’s my code:
....
0
votes
6
answers
116
views
Margin-right of a flex div not respected on narrow-width viewports
I have an image and a <p> inside a <div class = "man"> with display: flex. When I try to resize the window with the dev tools, the margin-right of the div colored with orange in ...
1
vote
1
answer
130
views
Unwanted margin in angular
I'm using angular, I want to create a header component, but when I add it to my main component, it appears with some margin.
<header id="actionVar">
<app-home-icon id="...
0
votes
0
answers
14
views
Active Reports / keep the same distance on different pages
I'm using Active Reports, and when I'm printing a label the margin only on first page is different from the folowing pages.
I've tried to zero the margins, but it did not work.
enter image description ...
1
vote
0
answers
42
views
Is there another behavior besides margin collapsing that causes similar problems in Safari?
I seem to have ran into a margin collapsing problem only in Safari, yet none of the provided ways on stackoverflow about margin collapse seem to help.
Only in Safari, if you swipe all the way to the ...
1
vote
0
answers
34
views
Issues with margins while using bootstrap 5
I'm new to coding
I created a grid with 12 columns dividing it into 6, 4 and 2 respectively. I added pictures to column 4 and 2.
The problem I've got it when I added a background color to the div ...
0
votes
1
answer
2k
views
How to expand a Streamlit expander (st.expander)?
I have an issue where I am creating a dashboard from my research on commodity price forecasting implemented with a Folium map and charts. However, when I use the st.expander function from Streamlit, ...
0
votes
0
answers
35
views
Body Margin not working On Wordpress CSS theme
I have this wordpress theme, the margin body or wrapper are not working, I tried all the body margin, wrapper margin, avoided most of the possible conflicts. but I still see in my browser a conflict ...
0
votes
0
answers
18
views
the calculate space around the div is not right with the metric where i have learned [duplicate]
four div with width 125 px without margin and padding physical align in a div with width 500 px without margin and padding but i can do this with margin -2px in small box else with the code over ...
0
votes
1
answer
65
views
No margin, no axes, no titles Plotly figure
I'm trying to create a clean and simple figure, but there seems to always be some kind of margin in the resulting HTML element. Here's the code:
import plotly.graph_objects as go
fig = go.Figure()
...
0
votes
1
answer
119
views
Hero Section not covering 100% of Display
Okay so, I want my hero section to cover 100% of the screen. Right now I'm trying it with height: (calc 100vh - 90px), the 90px coming from the header. The only problem is, that there is a gap between ...
0
votes
1
answer
80
views
Remove margins from aa image used as a background in pyqt5
I am tryiyng to remove an image's margins (or padding?) used as background image in mi app. I use a QLabel to place the image as the centralWidget of my mainwindow, but then when a initialize the app ...
-1
votes
2
answers
47
views
Why are the line heights in this web page different? [closed]
I created a small test web page, and the line heights are different, although they use the same CSS style. This becomes most visible when using Chrome to highlight the usage of the .instruction class. ...
0
votes
1
answer
21
views
How can I place near (vertically) two TextView?
Here's my Relative Layout:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="7"
android:gravity=&...
0
votes
1
answer
20
views
Why does adding a border to a parent div change its size to contain the margin of its children but not when it doesn't have border? [duplicate]
.parent {
background-color: red;
width: 100px;
/* border: solid 5px black; */
}
.child {
margin-top: 50px;
width: 100px;
height: 100px;
background-color: green;
}
<html>
<...
0
votes
2
answers
31
views
Hi, I am not able to see the CSS effect on the web browse to HTML file using Visual code. I can run HTML file in chrome and can see login page
I created login page in HTML and run in chrome and able to see the result but when I apply CSS effect like margin, padding and color but not able to run it. Do you mind how to connect CSS effect in ...
0
votes
1
answer
31
views
How to get CSS % unit to represent height instead of width
I'm trying to make an animated dropdown/expandable component with CSS. I currently have an expanded and collapsed class, implemented as follows:
.expanded {
margin-top: 0;
}
.collapsed {
margin-...
-1
votes
1
answer
50
views
Margin Space between div and header is undesired white
The margin space between div1 and header is undesired white, even though I declared the background as grey (rgb:243,243,243). I want to get rid of the white space between div1 and header.
I tried ...
-1
votes
1
answer
25
views
HTML & CSS - Body Not Adapting Fully To Content?
I was trying to create a page effect, like a new document in your favourite wordprocessor.
If you paste the following into an HTML file and view it (for me, in the latest Chrome):
<!DOCTYPE html>...
0
votes
1
answer
87
views
Textarea & Signature Pads - Out of place
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-...
-3
votes
1
answer
41
views
Padding and Margin in CSS [duplicate]
What is the padding and margin in CSS? How does it work?
I want some example easy examples of Padding and Margin.