Skip to main content
1 vote
1 answer
202 views

I was trying to add a page break after an element when the page is in landscape orientation with a media query: @media print and (orientation: landscape) { .item2 { break-after: page; } } ...
Benjamin Beinder's user avatar
3 votes
0 answers
125 views

I am generating a PDF from HTML. I have this below HTML file when I print this, header and main content is overlapping in second page how to fix this. What I tried: Used @page { margin-top: 120px; ...
Raju's user avatar
  • 19
1 vote
1 answer
121 views

I am working on an assignment and I can't find where the solution differs from my code. It's causing one div to be smaller than the other two , while the solution has all the same width. I've gone ...
itsrobert1234's user avatar
0 votes
0 answers
99 views

I have a video, which has to play different sources on mobile and desktop. For that, I'm using the html video with two sources to be able to switch the video depending on the viewport. The switch ...
webta.st.ic's user avatar
  • 5,289
0 votes
0 answers
85 views

According to the CSS spec: The resolution media feature describes the resolution of the output device, i.e. the density of the pixels, taking into account the page zoom [...]. I generated the ...
mltm's user avatar
  • 595
-1 votes
1 answer
142 views

I have a Carrd website where I'm using several fonts that aren't on the site by default, so I've been using Embeds for all text. Right now I'm trying to add @media queries to the head to adjust font ...
Karma-Creations's user avatar
0 votes
1 answer
119 views

Using JavaScript, I want to get the current value of prefers-contrast. The possible values are 'more', 'less', 'custom' and 'no-preference'. Doing a window.matchMedia(`prefers-contrast: ${value}`) ...
tao's user avatar
  • 91.1k
0 votes
1 answer
138 views

I need to generate a printed document directly in the browser (Chrome), using only HTML and CSS My goal is to: display a custom footer (e.g., a specific string) only on the last printed page. Here's ...
mmc's user avatar
  • 11
0 votes
1 answer
101 views

When no @media print is specified in the CSS file for a webpage, what width does the browser use to determine which CSS applies to the printed page? When we write our page code, we use a laptop first ...
MrCycling's user avatar
  • 3,106
0 votes
0 answers
57 views

I'm creating a site on Next.js 15, use @media queries. When I tested my site on old browsers (Safari iOS 15), I have discovered that my @media queries don't work. The problem is in Next.js CSS ...
Mike Tobler's user avatar
2 votes
1 answer
72 views

I wrote this code in CSS: /* Extra small devices (phones, 480px and down) */ @media only screen and (max-width: 480px) { body { background-color: red; } } /* Small devices (portrait ...
Nuho Zubaed Salam's user avatar
0 votes
0 answers
79 views

My media query works fine on desktop browsers ( when I resize the browser ) but it doesn't work on mobile browsers. I tried many solutions and found that the only problem is with the media query, ...
user avatar
1 vote
0 answers
101 views

I have developed an animation for my website, to give the effect of polaroid photos being tossed across a table top. I did this using the following html and CSS. It works in Codepen.(The changing font ...
Liam Robb O'Hagan's user avatar
-1 votes
1 answer
88 views

I am very confused with checking responsiveness of a website I am coding through toggling the mobile version in inspect mode. So i have a basic website with nav and hero section etc. When I go to ...
Maria's user avatar
  • 7
0 votes
1 answer
44 views

I'm trying to make my website responsive using a media query, but the styles inside it are not applying on my phone, even though I'm sure the screen width is under 768px. body { background-color: ...
SaumilPatel's user avatar

15 30 50 per page
1
2 3 4 5
537