id
stringlengths
7
11
source
stringclasses
1 value
category
stringclasses
11 values
title
stringlengths
15
214
text
stringlengths
70
30.5k
url
stringlengths
57
160
tags
stringlengths
3
113
created_at
int64
1.22B
1.79B
se_79965872
stackoverflow
FRONTEND_DEVELOPMENT
How to create switch for Aurora Borealis background?
How to create switch for Aurora Borealis background? I've recently discovered this beautiful code, which brings a fantastic Aurora Borealis effect to a page's background: https://codepen.io/Anil-Prajapat/details/dPoyReN How can I create a switch which will enable / disable this effect, please? I mean, if a user wishes...
https://stackoverflow.com/questions/79965872/how-to-create-switch-for-aurora-borealis-background
html, jquery, css
1,782,219,378
se_57979109
stackoverflow
FRONTEND_DEVELOPMENT
Can I hide a chart title in Superset?
Can I hide a chart title in Superset? In the below, I'm trying to hide the text "PV Monocrystalline" to provide a bit more room for the number. If i delete the content it still occupies the space and shows <empty> as the title. Is hiding this part of the chart entirely an option?
https://stackoverflow.com/questions/57979109/can-i-hide-a-chart-title-in-superset
css, apache-superset
1,568,740,519
se_79966045
stackoverflow
FRONTEND_DEVELOPMENT
how to add gaps around some of the columns of a grid in css
how to add gaps around some of the columns of a grid in css So, I want to add gap around the elements or columns of my grid. One way to do so is to add gap in the grid and all the columns and rows (boxes) will have the space in between them. But I require to do so for each to have a different gap length. Another way t...
https://stackoverflow.com/questions/79966045/how-to-add-gaps-around-some-of-the-columns-of-a-grid-in-css
html, css, flexbox, grid
1,782,249,225
se_30687803
stackoverflow
FRONTEND_DEVELOPMENT
Materialize CSS, choosing font color or family?
Materialize CSS, choosing font color or family? I wanna put some text in orange. It is an h4, or just need for changing its colour. http://materializecss.com/typography.html there'are diferent Roboto font family, but I dont know how to use it without using font-family...
https://stackoverflow.com/questions/30687803/materialize-css-choosing-font-color-or-family
html, css, frameworks
1,433,626,619
se_75736981
stackoverflow
FRONTEND_DEVELOPMENT
context-stroke and context-fill for markers in SVGs on Chrome don&#39;t work, alternatives?
context-stroke and context-fill for markers in SVGs on Chrome don&#39;t work, alternatives? I am working on generating some SVGs for a report and have to draw lines of different colors with matching markers for start and end. In Firefox it appears they fixed this issue 14 days ago, but Chrome doesn't understand the st...
https://stackoverflow.com/questions/75736981/context-stroke-and-context-fill-for-markers-in-svgs-on-chrome-dont-work-altern
css, google-chrome, svg
1,678,817,998
se_68446558
stackoverflow
FRONTEND_DEVELOPMENT
Font styles in CSS
Font styles in CSS I'm taking on a site and am tasked with reviewing the CSS, making CSS updates where necessary, and finally making content updates. While working on making a style change to a H1 tag, I noticed the .fontXlarge class has the styling that would work perfectly. However it doesn't apply to a H1 tag, only...
https://stackoverflow.com/questions/68446558/font-styles-in-css
html, css, fonts
1,626,726,036
se_10294415
stackoverflow
FRONTEND_DEVELOPMENT
CSS stylesheet and custom fonts
CSS stylesheet and custom fonts Alright, I'm a CSS newbie so here we go. In a template I'm using there's a stylesheet head { font-family: Verdana; font-size: 16px; color: #000000; } body { font-family: Verdana; font-size: 12px; color: #ffffff; } a { color: #ff0000; font-family: Ve...
https://stackoverflow.com/questions/10294415/css-stylesheet-and-custom-fonts
html, css, fonts, web
1,335,256,509
se_79965644
stackoverflow
FRONTEND_DEVELOPMENT
Creating slant lines coming out of an object in CSS
Creating slant lines coming out of an object in CSS I am creating an login page for a website and I took inspiration from this design: I want to create slant lines coming out from the container. How should I do that and I also want that when user resizes the window size it should stick to the container. I tried to ma...
https://stackoverflow.com/questions/79965644/creating-slant-lines-coming-out-of-an-object-in-css
css
1,782,196,410
se_3689484
stackoverflow
FRONTEND_DEVELOPMENT
CSS - Specifying fonts on Safari
CSS - Specifying fonts on Safari Since FixedSys won't display in Chrome or Safari, I make it switch to Lucida Console. It works for Chrome but for Safari I run into an issue. Unless Lucida Console is by itself, it WILL be to the font I said. If not -- then it won't work. Have a look at this picture: I don't know what ...
https://stackoverflow.com/questions/3689484/css-specifying-fonts-on-safari
html, css
1,284,170,501
se_23242019
stackoverflow
FRONTEND_DEVELOPMENT
Print footer only in last printed page for media print
Print footer only in last printed page for media print I need to print multiple pages and footer needs to be print in last page bottom. I have add css for footer like this footer { display: block; width:100%; position:absolute; left:0; bottom:0px; } Issue is footer is printi...
https://stackoverflow.com/questions/23242019/print-footer-only-in-last-printed-page-for-media-print
css, printing
1,398,250,098
se_37345942
stackoverflow
FRONTEND_DEVELOPMENT
How does url() function in CSS works?
How does url() function in CSS works? I already searched for the URL function Docs, for example the one you use for background-image: url('/somepath/someimage.png'); My question is : what kind of method is used to retrieve the specified resource / image where I can see this method implementation or any usful referen...
https://stackoverflow.com/questions/37345942/how-does-url-function-in-css-works
javascript, html, css
1,463,744,837
se_18371557
stackoverflow
FRONTEND_DEVELOPMENT
Do I need to repeat common portions of a selector or is there a nicer way?
Do I need to repeat common portions of a selector or is there a nicer way? I want to have something like the following (like a || ): [.pw-each-placecomment or .pw-each-usercomment] h2 { } Is this possible?
https://stackoverflow.com/questions/18371557/do-i-need-to-repeat-common-portions-of-a-selector-or-is-there-a-nicer-way
css, css-selectors
1,377,144,655
se_71471635
stackoverflow
FRONTEND_DEVELOPMENT
How can I use regex find-and-replace to insert missing spaces before curly braces?
How can I use regex find-and-replace to insert missing spaces before curly braces? I have an SCSS file, for example: .nice{ display: flex; &--green { color: green; } &--2{ display: grid; } @media only screen and (max-width: 600px){ display: none; } } I would like to insert a space before ...
https://stackoverflow.com/questions/71471635/how-can-i-use-regex-find-and-replace-to-insert-missing-spaces-before-curly-brace
css, regex, sass, regexp-replace
1,647,277,736
se_79709434
stackoverflow
FRONTEND_DEVELOPMENT
How to resize overlapping images while respecting positions and ratios in boostrap
How to resize overlapping images while respecting positions and ratios in boostrap I'm trying to find a way to make overlapping images with different positions and sizes responsive with Bootstrap. This is the bootstrap code I have: .img-overlay-wrap { position: relative; display: inline-block; /* <= shrinks ...
https://stackoverflow.com/questions/79709434/how-to-resize-overlapping-images-while-respecting-positions-and-ratios-in-boostr
html, css, image, responsive
1,753,118,662
se_32915485
stackoverflow
FRONTEND_DEVELOPMENT
How to prevent Unicode characters from rendering as emoji in HTML from JavaScript?
How to prevent Unicode characters from rendering as emoji in HTML from JavaScript? I'm finding Unicode for special characters from FileFormat.Info's search. Some characters are rendering as the classic black-and-white glyphs, such as ⚠ (warning sign, \u26A0 or &#x26a0;). These are preferable, since I can apply CSS s...
https://stackoverflow.com/questions/32915485/how-to-prevent-unicode-characters-from-rendering-as-emoji-in-html-from-javascrip
javascript, html, css, unicode, emoji
1,443,818,237
se_48889445
stackoverflow
FRONTEND_DEVELOPMENT
CSS to put a character between two HTML tags only if there is something in both
CSS to put a character between two HTML tags only if there is something in both I've got two values in my Model where either or both can contain a value. If both contain a value, I want to put a dash between them in the View. So, using span tags as containers for the properties, the output HTML will be <span>First...
https://stackoverflow.com/questions/48889445/css-to-put-a-character-between-two-html-tags-only-if-there-is-something-in-both
html, css
1,519,142,753
se_29981035
stackoverflow
FRONTEND_DEVELOPMENT
Floated Sidebar: How to get sidebar full height of window?
Floated Sidebar: How to get sidebar full height of window? I know that there will be people that may ask for the full code, but I'm just asking in a very general sense. Say, I have the main content floated to the left with no fixed height and the sidebar floated to the right. I want the sidebar to take up the full h...
https://stackoverflow.com/questions/29981035/floated-sidebar-how-to-get-sidebar-full-height-of-window
css, height, viewport, sidebar
1,430,449,101
se_79965275
stackoverflow
FRONTEND_DEVELOPMENT
Absolutely positioned elements do not respect flex alignment on iOS
Absolutely positioned elements do not respect flex alignment on iOS When positioning a flex/grid child absolutely to stack content, the flex position rules are ignored in both chrome and safari on iOS. This is the minimal example - the item should be positioned on the right. <div class="container"> <div class="item"...
https://stackoverflow.com/questions/79965275/absolutely-positioned-elements-do-not-respect-flex-alignment-on-ios
html, css, ios
1,782,131,940
se_13891164
stackoverflow
FRONTEND_DEVELOPMENT
CSS click to expand menu, instead of hover
CSS click to expand menu, instead of hover The :hover selector affects elements on mouse-over, and is used for expanding "tree branches" in a menu. But instead of :hover, I need the click interaction to be the trigger revealing the subordinate branch and closing other previously opened at the time. What :hover alterna...
https://stackoverflow.com/questions/13891164/css-click-to-expand-menu-instead-of-hover
html, css
1,355,564,958
se_77894777
stackoverflow
FRONTEND_DEVELOPMENT
How to load google fonts and material icons inside vue 3 custom web components
How to load google fonts and material icons inside vue 3 custom web components so I'm creating custom web components using Vue 3 to be used in any web application and I'm running into a problem when it comes to importing fonts and Google material icons because of the shadow-root. My current approach is to add the styl...
https://stackoverflow.com/questions/77894777/how-to-load-google-fonts-and-material-icons-inside-vue-3-custom-web-components
javascript, css, vue.js, web-component
1,706,445,174
se_54654517
stackoverflow
FRONTEND_DEVELOPMENT
Why does using em font-sizes ruin line-height?
Why does using em font-sizes ruin line-height? I set a font-size on my body element as 19px - then from there, I am using em for different kinds of things, but there is an issue and line-heights are irregular... example, I use font-size: 0.6 em and the line height is uneven, it's driving me crazy!! BTW using bootstra...
https://stackoverflow.com/questions/54654517/why-does-using-em-font-sizes-ruin-line-height
css, fonts, font-size
1,549,988,664
se_26406990
stackoverflow
FRONTEND_DEVELOPMENT
full screen code in HTML and CSS
full screen code in HTML and CSS I have a question of how to make the content in a full screen, there are codes of my content: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:l...
https://stackoverflow.com/questions/26406990/full-screen-code-in-html-and-css
html, css
1,413,469,920
se_24963990
stackoverflow
FRONTEND_DEVELOPMENT
jQuery validation select2
jQuery validation select2 I validate my form with jQuery validation plugin. I change style dropdown menu with jQuery select2 plugin. if validate callback error my input show/add class error box(red border) else show/add class success box(green border). This worked in normal input but wont work in select2. when I choos...
https://stackoverflow.com/questions/24963990/jquery-validation-select2
javascript, jquery, css, validation
1,406,320,153
se_73537320
stackoverflow
FRONTEND_DEVELOPMENT
How do i make the html window appear to shake?
How do i make the html window appear to shake? My question is exactly what the title says, i want to make the window shake, if you need CSS for this, how can I "call" the CSS code like a function whenever i want. The shake effect should last for about 3 seconds, max.
https://stackoverflow.com/questions/73537320/how-do-i-make-the-html-window-appear-to-shake
javascript, html, css
1,661,835,430
se_3308365
stackoverflow
FRONTEND_DEVELOPMENT
CSS no text wrap
CSS no text wrap Please see see code http://jsbin.com/eveqe3/edit, also quoted below. I need to show text inside the item divs in such a way the text appear only in the green box with specified width rest of the line need to be hidden. Any suggestions please... <style> #container{ width : 220px; } .item{ ...
https://stackoverflow.com/questions/3308365/css-no-text-wrap
html, css, text
1,279,798,509
se_79939908
stackoverflow
FRONTEND_DEVELOPMENT
Trouble calculating HTML line wrapping positions at different zoom levels
Trouble calculating HTML line wrapping positions at different zoom levels I’m fixing a bug in Monaco/VSCode advanced line wrapping. The advanced line wrapping works by rendering an invisible DOM node and calculating where the line is automatically wrapped by the browser. The resulting values are used in various places...
https://stackoverflow.com/questions/79939908/trouble-calculating-html-line-wrapping-positions-at-different-zoom-levels
javascript, html, css, zooming
1,778,585,006
se_79928955
stackoverflow
FRONTEND_DEVELOPMENT
How to have one element always be right above a chosen other element
How to have one element always be right above a chosen other element I'm working on a calendar for a project where, when a chosen event is clicked, a pop-up box is supposed to appear right above the clicked element. I originally tried to do it where it works based on the position of the physical element the user click...
https://stackoverflow.com/questions/79928955/how-to-have-one-element-always-be-right-above-a-chosen-other-element
javascript, css, reactjs, fullcalendar, popover
1,776,705,607
se_54112231
stackoverflow
FRONTEND_DEVELOPMENT
Is it possible to create a glow effect in SVG
Is it possible to create a glow effect in SVG I'm learning SVG and I would like to know if it is possible to create this kind of glow effect with SVG, interactively as in the following example -hovering trigger the effect - https://codepen.io/FelixRilling/pen/qzfoc The fact is that I'm wondering how make the light com...
https://stackoverflow.com/questions/54112231/is-it-possible-to-create-a-glow-effect-in-svg
html, css, svg
1,547,043,752
se_79944392
stackoverflow
FRONTEND_DEVELOPMENT
Coding scripts for Cuberealm.io
Coding scripts for Cuberealm.io I am very new to coding, and I am just now learning HTML, CSS, and JavaScript. Right now I am trying to make a script/hack for a Minecraft-based browser game called "Cuberealm.io" https://cuberealm.io/ to practice coding JS and script injection. Cuberealm.io is an HTML5 3D WebGL browser...
https://stackoverflow.com/questions/79944392/coding-scripts-for-cuberealm-io
javascript, html, css, game-physics
1,779,331,429
se_79963389
stackoverflow
FRONTEND_DEVELOPMENT
Flash of unstyled content issue only in Firefox based browsers
Flash of unstyled content issue only in Firefox based browsers I use zen as a browser, deployed with vercel. There is a black flash while navigating between pages (not locally). When I tested my website with other browsers like Chrome or Edge, there is no problem at all; everything works perfectly and fast. I have dev...
https://stackoverflow.com/questions/79963389/flash-of-unstyled-content-issue-only-in-firefox-based-browsers
html, css
1,781,916,846
se_78288949
stackoverflow
FRONTEND_DEVELOPMENT
Api call to load blog posts saying blocked by orb
Api call to load blog posts saying blocked by orb I have a blog application in which the home page shows the blog posts of all authors with the images of the blog post and their profile pic...but the images are not being displayed and when I check the network requests it says(failed)net::ERR_BLOCKED_BY_ORB but also I ...
https://stackoverflow.com/questions/78288949/api-call-to-load-blog-posts-saying-blocked-by-orb
javascript, html, css, reactjs, backend
1,712,516,092
se_9957496
stackoverflow
FRONTEND_DEVELOPMENT
Flowchart with CSS/HTML
Flowchart with CSS/HTML Currently I'm trying to make a flowchart, this is the code I've got so far: #flowchart { width: 580px; text-align: center; font-family: sans-serif; font-size: .8em; margin: auto; } #flowchart a { display: block; c...
https://stackoverflow.com/questions/9957496/flowchart-with-css-html
html, css, rounded-corners, flowchart, html-heading
1,333,209,965
se_65046453
stackoverflow
FRONTEND_DEVELOPMENT
Npm run build and watch extremely slow
Npm run build and watch extremely slow I'm trying to create a basic Tailwind starter project and when I try to run the npm run build or npm run watch command, it takes about 30-60 seconds to make a change. Here is my setup: package.json: { "name": "base", "version": "1.0.0", "description": "", "main": "index.j...
https://stackoverflow.com/questions/65046453/npm-run-build-and-watch-extremely-slow
css, npm, tailwind-css, postcss, tailwind-css-3
1,606,538,226
se_79944031
stackoverflow
FRONTEND_DEVELOPMENT
Why is &quot;flex&quot; property not sizing the children elements proportionally?
Why is &quot;flex&quot; property not sizing the children elements proportionally? My expectation: The .lower-card height should be 70px and .upper-card height to be 140px (because flex is set to 1 and 2 respectively and total height is 210px). Reality: Problem is that my padding is applying upwards eating into the .up...
https://stackoverflow.com/questions/79944031/why-is-flex-property-not-sizing-the-children-elements-proportionally
html, css, flexbox, padding
1,779,278,280
se_1995370
stackoverflow
FRONTEND_DEVELOPMENT
Adding Line Numbers To HTML Textarea
Adding Line Numbers To HTML Textarea I have a <textarea> element as in the code below. How can I display line numbers along the left margin of it? <TEXTAREA name="program" id="program" rows="15" cols="65" ></TEXTAREA>
https://stackoverflow.com/questions/1995370/adding-line-numbers-to-html-textarea
javascript, html, css, textarea
1,262,534,174
se_36441961
stackoverflow
FRONTEND_DEVELOPMENT
How do i get this code to scale to different window sizes?
How do i get this code to scale to different window sizes? I've tried many of the solutions from similar questions but they don't seem to work on my page. This is the code I would like to scale. One more thin, underneath the gif I would like to keep3 boxes per row, as it seems that when I go to a larger window size on...
https://stackoverflow.com/questions/36441961/how-do-i-get-this-code-to-scale-to-different-window-sizes
javascript, html, css, responsive-design
1,459,919,126
se_3166697
stackoverflow
FRONTEND_DEVELOPMENT
css text rotate - text only , not parent element
css text rotate - text only , not parent element on this page: https://www.bcidaho.com/mammography/ if you click "find a screening center" a table of information comes up... how can i rotate the text in the last 5 cells? obviously cross browser would help... this would allow the table to fit properly... and do i h...
https://stackoverflow.com/questions/3166697/css-text-rotate-text-only-not-parent-element
css, text, rotation
1,278,081,733
se_33509414
stackoverflow
FRONTEND_DEVELOPMENT
Bootstrap equal height boxes with nested colored divs
Bootstrap equal height boxes with nested colored divs I have a problem with equal height cols/boxes in bootstrap in combination with nested colored divs. Actually to set cols to equal heights isn't that problem with flex boxes anymore. The difficulties I encountered is the set it up for the proper look. The bootstrap ...
https://stackoverflow.com/questions/33509414/bootstrap-equal-height-boxes-with-nested-colored-divs
css, twitter-bootstrap, flexbox, height
1,446,586,145
se_24358453
stackoverflow
FRONTEND_DEVELOPMENT
jQuery show/hide on click in Wordpress
jQuery show/hide on click in Wordpress I have three buttons that change color when you hover (sprites) and I want to use those buttons so that when they are clicked on, different content will display. I've gone through multiple tutorials / boards and nothing seems to work. The buttons are displayed as follows: <div...
https://stackoverflow.com/questions/24358453/jquery-show-hide-on-click-in-wordpress
javascript, jquery, css, html, wordpress
1,403,498,185
se_79958657
stackoverflow
FRONTEND_DEVELOPMENT
Struggling to understand how to have some text inside an unordered list bold
Struggling to understand how to have some text inside an unordered list bold The problem I describe below was me making a mistake about putting text (with tags) between the <ul> and the first <li> Sorry for mis-diagnosing the problem. A simple example of my unordered list that seems to render but breaks the rules: <...
https://stackoverflow.com/questions/79958657/struggling-to-understand-how-to-have-some-text-inside-an-unordered-list-bold
html, css
1,781,391,387
se_55930993
stackoverflow
FRONTEND_DEVELOPMENT
How to directly save HTML/CSS animations to a video file (AVI)?
How to directly save HTML/CSS animations to a video file (AVI)? Without a screen recorder, Is it possible to directly export, render, or save HTML CSS animations to a video file? I'm also aware SVG within a html document could also be a part of such a process. I tried searching online for a solution, but I only get "...
https://stackoverflow.com/questions/55930993/how-to-directly-save-html-css-animations-to-a-video-file-avi
html, css, video, css-transitions, css-animations
1,556,678,125
se_42424605
stackoverflow
FRONTEND_DEVELOPMENT
Can I turn css keyframes animation into video/movie/mpg?
Can I turn css keyframes animation into video/movie/mpg? I recently made a simple but cool animated banner with CSS's "@keyframes"... ...but since that animation apparently demands a lot of power, it gives me a very choppy/sluggish web browser (Chrome) as well as turning my Macbook Pro into an expensive hair dryer, i...
https://stackoverflow.com/questions/42424605/can-i-turn-css-keyframes-animation-into-video-movie-mpg
html, css, animation
1,487,878,408
se_50000075
stackoverflow
FRONTEND_DEVELOPMENT
contact form 7 checkbox styling
contact form 7 checkbox styling I'm trying to create 6 check boxes in contact form 7 displayed in a grid of 6, the check boxes I have created with help from this site: .select-size input { display: none; } label { display: inline-block; width: 150px; height: 80px; text-align: center; border: 2px solid #...
https://stackoverflow.com/questions/50000075/contact-form-7-checkbox-styling
html, css, wordpress, contact-form-7
1,524,567,860
se_55186679
stackoverflow
FRONTEND_DEVELOPMENT
HTML CSS &amp; Javascript Responsive Navbar
HTML CSS &amp; Javascript Responsive Navbar I'm relatively new to coding and I've been trying to make a responsive multi-list dropdown navbar. I have made the navbar using HTML and CSS however it isn't very responsive when I change the screen size. I don't want to use bootstrap. and I am aiming hamburger which compr...
https://stackoverflow.com/questions/55186679/html-css-javascript-responsive-navbar
html, css, navbar, responsive
1,552,666,355
se_24478802
stackoverflow
FRONTEND_DEVELOPMENT
Django transferring stylesheet with MIME type text/html on custom 404 page
Django transferring stylesheet with MIME type text/html on custom 404 page I'm designing a custom 404 page for my site which is built with Django, but I'm running into problems with the stylesheet associated with 404.html. I set DEBUG = False in settings.py in order to see my custom 404 page, and added '*' to ALLOWE...
https://stackoverflow.com/questions/24478802/django-transferring-stylesheet-with-mime-type-text-html-on-custom-404-page
python, html, css, django, mime
1,404,065,254
se_52440463
stackoverflow
FRONTEND_DEVELOPMENT
Scroll Event is not firing in Angular-6
Scroll Event is not firing in Angular-6 I know this question is asked before, but none of the solutions worked for me. I am working on the Angular-6 project. I am trying to get Window-Scroll event in one of the components named SectionComponent. Styles of html and body tag: html, body { overflow: auto; po...
https://stackoverflow.com/questions/52440463/scroll-event-is-not-firing-in-angular-6
html, css, angular6, dom-events, window-scroll
1,537,521,367
se_58098163
stackoverflow
FRONTEND_DEVELOPMENT
Is it possible to use CSS zoom value based on vw units?
Is it possible to use CSS zoom value based on vw units? I'm making a responsive design and I would like that displays larger than 1920p scale proportionally with the viewport width. That would be useful for any resolution above 1920p (e.g. 4k, 8k, 16k and others between). To make that work (partially) I had to create...
https://stackoverflow.com/questions/58098163/is-it-possible-to-use-css-zoom-value-based-on-vw-units
css
1,569,413,747
se_46517111
stackoverflow
FRONTEND_DEVELOPMENT
How to center div element in mobile devices by CSS media queries
How to center div element in mobile devices by CSS media queries I need to center div's element for mobile devices. This is my website: http://transporttest.cba.pl/ On mobile devices description div goes to the left.I try to use media queries but it didnt works. What I'm doing wrong? On PC everything is ok. This is fr...
https://stackoverflow.com/questions/46517111/how-to-center-div-element-in-mobile-devices-by-css-media-queries
html, css, mobile, media-queries, mobile-devices
1,506,893,501
se_60470598
stackoverflow
FRONTEND_DEVELOPMENT
How to smooth horizontal collapse transition with React-Bootstrap?
How to smooth horizontal collapse transition with React-Bootstrap? Edit: CodeSandbox link: https://codesandbox.io/s/strange-dawn-q9zow I'm creating a React app that I want to have a collapsible sidebar. I'm using the transition collapse utility from React-Bootstrap. Since this is for a sidebar, I'm using dimension="w...
https://stackoverflow.com/questions/60470598/how-to-smooth-horizontal-collapse-transition-with-react-bootstrap
css, reactjs, twitter-bootstrap, react-bootstrap
1,583,018,861
se_44910947
stackoverflow
FRONTEND_DEVELOPMENT
How to set column width in Kendo Grid
How to set column width in Kendo Grid I have to set some fixed column width in Kendo Grid which has no column headers.That means I get data simlar to below with single column "foo_data" and am hiding this column header and showing in the kendo Grid as is.The columns and rows in the Grid are dynamic ie.in the below exa...
https://stackoverflow.com/questions/44910947/how-to-set-column-width-in-kendo-grid
angularjs, css, kendo-ui, kendo-grid, bootstrap-4
1,499,187,066
se_35014990
stackoverflow
FRONTEND_DEVELOPMENT
Refused to load the stylesheet because it violates the following Content Security Policy directive: &quot;style-src &#39;self&#39;&quot;
Refused to load the stylesheet because it violates the following Content Security Policy directive: &quot;style-src &#39;self&#39;&quot; I have a webpage with this header. It's a non interactive page with just twitter bootstrap js. <head> <title>Versions: unknown bl version vs. 1.0.487 [flavor: HISTORIC_TIME]</tit...
https://stackoverflow.com/questions/35014990/refused-to-load-the-stylesheet-because-it-violates-the-following-content-securit
javascript, jquery, html, css
1,453,815,137
se_48391984
stackoverflow
FRONTEND_DEVELOPMENT
Bootstrap 4 responsive image with set height
Bootstrap 4 responsive image with set height If I have a card inside a column, that needs to have an image with a set height, how do I make it not stretched out, as it currently is in my code example? And without having to have a set width on the image because I want it to be replaceable. What am I missing and/or do...
https://stackoverflow.com/questions/48391984/bootstrap-4-responsive-image-with-set-height
html, css, twitter-bootstrap, bootstrap-4
1,516,664,417
se_36729986
stackoverflow
FRONTEND_DEVELOPMENT
How to change style of elements that aren&#39;t &quot;(obj)&quot;
How to change style of elements that aren&#39;t &quot;(obj)&quot; I have multiple items in a row that I want to easily change the style of the border based on my selection. Here is the HTML of just the row and some of the items in it: <div class="items"> <ul> <li class="item-hold"> ...
https://stackoverflow.com/questions/36729986/how-to-change-style-of-elements-that-arent-obj
javascript, html, css
1,461,101,980
se_36678090
stackoverflow
FRONTEND_DEVELOPMENT
I am trying to create a speech to text input in html that will work in Internet Explorer (Windows 10 a.k.a Edge), is there a way?
I am trying to create a speech to text input in html that will work in Internet Explorer (Windows 10 a.k.a Edge), is there a way? I would like a simple input text bar that looks like: this However, I would like there to be a way that someone can speak their text into their microphone, is there a way for it to work in ...
https://stackoverflow.com/questions/36678090/i-am-trying-to-create-a-speech-to-text-input-in-html-that-will-work-in-internet
javascript, html, css
1,460,904,792
se_36151174
stackoverflow
FRONTEND_DEVELOPMENT
How can we dynamically generate certificates?
How can we dynamically generate certificates? I am designing a self service portal web site for the conference held at my University. ICDCIT Certificates are given to participants, authors and delegates attending the conference. So I need to dynamically generate their certificates which they can print in pdf format. ...
https://stackoverflow.com/questions/36151174/how-can-we-dynamically-generate-certificates
javascript, html, css
1,458,640,566
se_35900561
stackoverflow
FRONTEND_DEVELOPMENT
What&#39;s wrong with this script and why am I getting no error?
What&#39;s wrong with this script and why am I getting no error? I'm relatively new to JS and decided to practice a bit. I wanted to make a web page to select how many products you want to buy, with two buttons a plus and a minus. The program was supposed to add 1 to an input or take 1 depending on what button was imp...
https://stackoverflow.com/questions/35900561/whats-wrong-with-this-script-and-why-am-i-getting-no-error
javascript, html, css
1,457,550,760
se_35807571
stackoverflow
FRONTEND_DEVELOPMENT
Animation on content change with CSS/JS
Animation on content change with CSS/JS On my web site I change text with JS. This change of text can move the border or can resize the background of the text. This is happening instantly. So my question is how can I make that change smooth with an animation?
https://stackoverflow.com/questions/35807571/animation-on-content-change-with-css-js
javascript, html, css
1,457,132,173
se_53437417
stackoverflow
FRONTEND_DEVELOPMENT
How to highlight and detect mouse clicks on a css grid row?
How to highlight and detect mouse clicks on a css grid row? I'm trying to create a menu which I'm laying out using CSS grid. The problem that I'm having is figuring out how I can make the menu interactive when the mouse is hovering over each menu item. I would like to be able to highlight the entire row when the m...
https://stackoverflow.com/questions/53437417/how-to-highlight-and-detect-mouse-clicks-on-a-css-grid-row
javascript, html, css, grid, highlight
1,542,916,922
se_14423964
stackoverflow
FRONTEND_DEVELOPMENT
css3 background radial circle gradient
css3 background radial circle gradient I have this code below which creating a background radial circle gradient. it's working well on all browsers except IE (not working even on IE9) what should I add to the css in order for it to work also on IE9 and IE8? http://jsfiddle.net/bhBtw/ The code: <!DOCTYPE html> <ht...
https://stackoverflow.com/questions/14423964/css3-background-radial-circle-gradient
css
1,358,680,912
se_79742964
stackoverflow
FRONTEND_DEVELOPMENT
How to make CSS infinite logo slider animation smooth without jumping?
How to make CSS infinite logo slider animation smooth without jumping? I am creating a horizontal logo slider with multiple tracks.My goal is: Even-numbered tracks should animate logos to the right. Odd-numbered tracks should animate logos to the left. Whenever I add new child elements to .logo-slider, the animation s...
https://stackoverflow.com/questions/79742964/how-to-make-css-infinite-logo-slider-animation-smooth-without-jumping
html, css, css-animations
1,755,837,232
se_79959320
stackoverflow
FRONTEND_DEVELOPMENT
Nested unordered list not displaying text-indent they way I think it should in chrome engine. Works with Firefox
Nested unordered list not displaying text-indent they way I think it should in chrome engine. Works with Firefox In Firefox all of the li items are out-dented, but in the chrome engine (Chrome, Edge, Comodo) the item that starts a nested list doesn't out-dent. Using Developer Tools shows that the out-dent listed but ...
https://stackoverflow.com/questions/79959320/nested-unordered-list-not-displaying-text-indent-they-way-i-think-it-should-in-c
html, css
1,781,547,997
se_79959384
stackoverflow
FRONTEND_DEVELOPMENT
Is it possible to make list with links to only have numbers using CSS counters?
Is it possible to make list with links to only have numbers using CSS counters? I have a list with links that I can't modify. Is there a way to make the list show only numbers so you can style it as a pagination? The links are real links that point to pages, so I need to keep them navigable. I can't add JavaScript. It...
https://stackoverflow.com/questions/79959384/is-it-possible-to-make-list-with-links-to-only-have-numbers-using-css-counters
css, css-counter
1,781,565,250
se_18845131
stackoverflow
FRONTEND_DEVELOPMENT
Absolute Div top position changed while zoom ( Ctrl + ) in chrome browser
Absolute Div top position changed while zoom ( Ctrl + ) in chrome browser I have problem with absolute positioning DIV over the table element. I have a DIV that’s set the position absolute and set the top position to display the exact place. Now what happened in chrome browser while zooming (ctrl +) the DIV position h...
https://stackoverflow.com/questions/18845131/absolute-div-top-position-changed-while-zoom-ctrl-in-chrome-browser
css, html, google-chrome
1,379,407,279
se_57927741
stackoverflow
FRONTEND_DEVELOPMENT
How to styling textarea like input field
How to styling textarea like input field I have a problem with styling a textarea, i use bootstrap 4 css i was trying to styling by my self but if i using a padding or margin it's make the textarea height to big .comment-box { padding: 0.8rem 1rem; border-radius: 30px; } <textarea class="form-control com...
https://stackoverflow.com/questions/57927741/how-to-styling-textarea-like-input-field
html, css, bootstrap-4, textarea
1,568,394,452
se_76866422
stackoverflow
FRONTEND_DEVELOPMENT
Using CSS transition
Using CSS transition I am having troubles understanding CSS transition even when what I think is obvious should work but it doesn't. What I am trying to accomplish is a little complex than this, but this simple example shows how I think I don't understand how CSS transitions work yet. I want the flex-direction propert...
https://stackoverflow.com/questions/76866422/using-css-transition
css, css-transitions
1,691,573,793
se_35796683
stackoverflow
FRONTEND_DEVELOPMENT
Change text color of a table row based on cell content, Using CSS only
Change text color of a table row based on cell content, Using CSS only I was given two files, HTML and CSS, and I have to change some table rows "text color" based on cell content in the HTML file. But the problem is that I have to change ONLY the CSS file (without touching the HTML file) to achieve that. Can anyone p...
https://stackoverflow.com/questions/35796683/change-text-color-of-a-table-row-based-on-cell-content-using-css-only
javascript, html, css
1,457,096,234
se_35361986
stackoverflow
FRONTEND_DEVELOPMENT
CSS gradient checkerboard pattern
CSS gradient checkerboard pattern I want to create a checkerboard pattern using gradients. I've found an example and modified it to my needs, however it only works with -moz prefix. When I remove the -moz prefix, the pattern is completely different. How can I make this -moz checkerboard pattern work with unprefixed ...
https://stackoverflow.com/questions/35361986/css-gradient-checkerboard-pattern
css, gradient, linear-gradients
1,455,278,032
se_4325660
stackoverflow
FRONTEND_DEVELOPMENT
How to force a piece of text to be &#39;direction ltr&#39; inside a &#39;direction rtl&#39; paragraph
How to force a piece of text to be &#39;direction ltr&#39; inside a &#39;direction rtl&#39; paragraph So, phone numbers are always ltr (left to right). Working on a multilingual website I need to insert a phone number (with a '+' prefix and numbers separated by '-') inside a text paragraph that has direction rtl (for...
https://stackoverflow.com/questions/4325660/how-to-force-a-piece-of-text-to-be-direction-ltr-inside-a-direction-rtl-para
html, css, multilingual, bidi
1,291,215,691
se_47023240
stackoverflow
FRONTEND_DEVELOPMENT
How to hide and show array elements without jQuery
How to hide and show array elements without jQuery So I have an Array and I would like to be able to hide and show each element of the array just by clicking it using vanilla JavaScript. Although I am a little confused on how to use the getElementById in this instance because it's an array... HTML: <html> <head> <...
https://stackoverflow.com/questions/47023240/how-to-hide-and-show-array-elements-without-jquery
javascript, html, css, onclick, show-hide
1,509,393,500
se_79920223
stackoverflow
FRONTEND_DEVELOPMENT
How do I compose a base reference for my website?
How do I compose a base reference for my website? I am rewriting my website. I have decided upon a structure for its directories, which on my local drive, appears as: Additional directories will be created to contain specific content (e.g., Tools, Toolbox Components, etc.). Each HTML file in these directories needs t...
https://stackoverflow.com/questions/79920223/how-do-i-compose-a-base-reference-for-my-website
javascript, html, css
1,775,328,887
se_46995420
stackoverflow
FRONTEND_DEVELOPMENT
aligning text in float right
aligning text in float right Trying to align text that is in a div with float right Trying at add tabs to my information, seems to be working with phone numbers, but if i'm floating it right it does not work. Also when my screen is smaller then 400px the information text does not seem to be 100% centred. The code: ...
https://stackoverflow.com/questions/46995420/aligning-text-in-float-right
html, css
1,509,232,521
se_3557260
stackoverflow
FRONTEND_DEVELOPMENT
Should I use pt or px?
Should I use pt or px? What is the difference between pt and px in CSS? Which one should I use and why?
https://stackoverflow.com/questions/3557260/should-i-use-pt-or-px
css
1,282,658,601
se_22367508
stackoverflow
FRONTEND_DEVELOPMENT
How to right-align options in a DropDownList?
How to right-align options in a DropDownList? I'm trying to right-align the options of a DropDownList, but it doesn't seem to work. HTML: <asp:DropDownList runat="server" CssClass="MyDDL"> <asp:ListItem Text="1234"></asp:ListItem> <asp:ListItem Text="123"></asp:ListItem> <asp:ListItem Text="12345"></asp:...
https://stackoverflow.com/questions/22367508/how-to-right-align-options-in-a-dropdownlist
asp.net, css, drop-down-menu, alignment
1,394,675,107
se_50155878
stackoverflow
FRONTEND_DEVELOPMENT
SVG - make viewBox(0, 0, 100%, 100%) with percentages
SVG - make viewBox(0, 0, 100%, 100%) with percentages How can I make SVG viewBox user coordinate system the same as the viewport coordinates system provided by SVG itself (height="100%" and width="100%")? I need this special case for a project I'm doing, SVG element should be responsive, but still we need to keep hei...
https://stackoverflow.com/questions/50155878/svg-make-viewbox0-0-100-100-with-percentages
javascript, css, svg
1,525,352,896
se_48749056
stackoverflow
FRONTEND_DEVELOPMENT
Iterate through multiple items and remove the first child of every item using jQuery
Iterate through multiple items and remove the first child of every item using jQuery I know it might be a little bit dumb, but I am really struggling with simple things like the following problem. Here is an example of the code that I have. The problem will be explained after the code. So here it is: <div class="wrapp...
https://stackoverflow.com/questions/48749056/iterate-through-multiple-items-and-remove-the-first-child-of-every-item-using-jq
javascript, jquery, html, css
1,518,446,807
se_2585744
stackoverflow
FRONTEND_DEVELOPMENT
How-to display a .gif as background image?
How-to display a .gif as background image? I have a javascript "loading" function like this: function splashScreen() { var div = document.createElement('div'); div.appendChild(document.createTextNode("some text")); div.style.position = "fixed"; div.style.width = "100%"; div.style.height = "100%"; ...
https://stackoverflow.com/questions/2585744/how-to-display-a-gif-as-background-image
javascript, html, css, safari, gif
1,270,565,175
se_57451602
stackoverflow
FRONTEND_DEVELOPMENT
Watching for div width changes in vue
Watching for div width changes in vue I have an nuxt app where I have two sidebars, one on the left and one on the right. Both are fixed and body has padding from right and left. In the middle I have <nuxt/> that loads pages. Left sidebar can be minimized to 60px so I cannot use media queries for this and I need to...
https://stackoverflow.com/questions/57451602/watching-for-div-width-changes-in-vue
javascript, css, vue.js, nuxt.js
1,565,539,813
se_19631441
stackoverflow
FRONTEND_DEVELOPMENT
how can i make the field looks mandatory using HTML and CSS
how can i make the field looks mandatory using HTML and CSS I want to make a field mandatory but the *required in red color is coming below the field name which i want just beside to field name here is the HTML code <div class="span12" id="propertytype"> {% for field1 in propertytypeform %} <p> <l...
https://stackoverflow.com/questions/19631441/how-can-i-make-the-field-looks-mandatory-using-html-and-css
html, css, django
1,382,953,370
se_79957190
stackoverflow
FRONTEND_DEVELOPMENT
Print Sizing Errors
Print Sizing Errors <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Print Dimension Test - 5mm Discrepancy</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } @page { margin: 0; size: A4; ...
https://stackoverflow.com/questions/79957190/print-sizing-errors
css, printing
1,781,276,177
se_66420241
stackoverflow
FRONTEND_DEVELOPMENT
How can I create an alternating list pattern with just CSS?
How can I create an alternating list pattern with just CSS? I have a list of items with an alternating colour pattern on a screen of 991 pixels and above. I am using CSS to target each child element that I want to change the colour of. However, my CSS does not seem very elegant as the number of items is unknown and co...
https://stackoverflow.com/questions/66420241/how-can-i-create-an-alternating-list-pattern-with-just-css
css
1,614,593,913
se_79956577
stackoverflow
FRONTEND_DEVELOPMENT
View transition not working for pseudo-class `:checked`
View transition not working for pseudo-class `:checked` I have a view transition: checkbox.oninput = () => { document.startViewTransition(() => { checkbox.classList.toggle('checked'); }); }; .container { display: grid; grid-template: 100px 100px / 100px 100px; } label { view-transition-name: foo; } :...
https://stackoverflow.com/questions/79956577/view-transition-not-working-for-pseudo-class-checked
javascript, css, view-transitions-api
1,781,187,314
se_79958532
stackoverflow
FRONTEND_DEVELOPMENT
As a beginner, how do I transition from HTML/CSS tutorials to building real projects?
As a beginner, how do I transition from HTML/CSS tutorials to building real projects? I have recently started learning HTML and CSS and can create basic pages using headings, forms, tables, semantic tags, Flexbox, and simple styling. My challenge is that I can follow tutorials and complete small exercises, but I find ...
https://stackoverflow.com/questions/79958532/as-a-beginner-how-do-i-transition-from-html-css-tutorials-to-building-real-proj
html, css, web-development-server
1,781,360,071
se_45847392
stackoverflow
FRONTEND_DEVELOPMENT
Pure CSS Continuous Horizontal Text Scroll Without Break
Pure CSS Continuous Horizontal Text Scroll Without Break I'm trying to create a news ticker with horizontal text that scrolls continuously without a break between loops. Ideally, the solution would be pure css/html, but I don't know if that's possible. Here's my rudimentary attempt so far: http://jsfiddle.net/lgants/n...
https://stackoverflow.com/questions/45847392/pure-css-continuous-horizontal-text-scroll-without-break
html, css
1,503,514,391
se_79956322
stackoverflow
FRONTEND_DEVELOPMENT
Backwards `transition` is sudden
Backwards `transition` is sudden I have code with a forwards and backwards transition. (It uses allow-keywords, so it's for Chrome, not yet other browsers.) .foo { transition: width 1s, display 1s; @starting-style { width: 0; } transition-behavior: allow-discrete; interpolate-size: allow-keywords; ou...
https://stackoverflow.com/questions/79956322/backwards-transition-is-sudden
css, css-transitions
1,781,161,932
se_3679213
stackoverflow
FRONTEND_DEVELOPMENT
Inlining CSS in C#
Inlining CSS in C# I need to inline css from a stylesheet in c#. Like how this works. http://www.mailchimp.com/labs/inlinecss.php The css is simple, just classes, no fancy selectors. I was contemplating using a regex (?<rule>(?<selector>[^{}]+){(?<style>[^{}]+)})+ to strip the rules from the css, and then attempt...
https://stackoverflow.com/questions/3679213/inlining-css-in-c
c#, css, inlining
1,284,054,972
se_3508605
stackoverflow
FRONTEND_DEVELOPMENT
How can I transition height: 0; to height: auto; using CSS?
How can I transition height: 0; to height: auto; using CSS? I am trying to make a <ul> slide down using CSS transitions. The <ul> starts off at height: 0;. On hover, the height is set to height:auto;. However, this is causing it to simply appear, not transition, If I do it from height: 40px; to height: auto;, then i...
https://stackoverflow.com/questions/3508605/how-can-i-transition-height-0-to-height-auto-using-css
css, css-transitions
1,282,099,835
se_38213329
stackoverflow
FRONTEND_DEVELOPMENT
How To Add CSS3 Transition With HTML5 details/summary tag reveal?
How To Add CSS3 Transition With HTML5 details/summary tag reveal? Using just CSS3, is there a way to add a nice fade-in and slide-from-left transition effect on a DETAILS/SUMMARY reveal? For a demo of this new tag, see this demo: details { transition:height 3s ease-in; } <details> <summary>Copyright 1999-2014...
https://stackoverflow.com/questions/38213329/how-to-add-css3-transition-with-html5-details-summary-tag-reveal
html, css, css-transitions
1,467,755,242
se_79954704
stackoverflow
FRONTEND_DEVELOPMENT
How is this smooth masonry/grid scrolling effect achieved?
How is this smooth masonry/grid scrolling effect achieved? I am trying to recreate the scrolling effect shown in the attached GIF. The page consists of multiple image columns arranged in a grid-like layout. When scrolling: Different columns appear to move at different speeds. The movement is smooth and inertia-based...
https://stackoverflow.com/questions/79954704/how-is-this-smooth-masonry-grid-scrolling-effect-achieved
javascript, html, css
1,781,024,234
se_79956805
stackoverflow
FRONTEND_DEVELOPMENT
HTML/CSS: Text is centered, but cursor is left-aligned until typing
HTML/CSS: Text is centered, but cursor is left-aligned until typing I am working on a project which involves text fields in editable boxes. The boxes have some placeholder text until the user clicks into the box, and then the placeholder text disappears, allowing the user to put in their text. I have attempted to trim...
https://stackoverflow.com/questions/79956805/html-css-text-is-centered-but-cursor-is-left-aligned-until-typing
html, css, firefox
1,781,219,863
se_15579304
stackoverflow
FRONTEND_DEVELOPMENT
Media Query for Android Devices
Media Query for Android Devices I have my site optimized for OS and iOS, but testing it for Android through browserstack.com has left me puzzled about targeting Android devices in my media queries. Here is my query that works for iOS devices: /* #using em based query after reading this article: http://blog.cloudfour.c...
https://stackoverflow.com/questions/15579304/media-query-for-android-devices
css, media-queries
1,363,984,045
se_79956264
stackoverflow
FRONTEND_DEVELOPMENT
How do I make a textbox in HTML that clears when I hit enter?
How do I make a textbox in HTML that clears when I hit enter? I want to make a textbox on a page that you can type stuff into, and then when you hit enter, it clears all of the text in the textbox. I don't want it to refresh the page or submit the text anywhere or do anything other than just clear the text in the box.
https://stackoverflow.com/questions/79956264/how-do-i-make-a-textbox-in-html-that-clears-when-i-hit-enter
javascript, html, css
1,781,153,515
se_25599260
stackoverflow
FRONTEND_DEVELOPMENT
Change &lt;select&gt; &lt;option&gt; highlight color
Change &lt;select&gt; &lt;option&gt; highlight color I have this: <select name="idx" id="search-field_0"> <option value="kw">Keyword</option> <option value="su,wrdl">Subject</option> <option value="ti">Title</option> <option value="au,wrdl">Author</optio...
https://stackoverflow.com/questions/25599260/change-select-option-highlight-color
css, twitter-bootstrap, overriding
1,409,548,900
se_79952781
stackoverflow
FRONTEND_DEVELOPMENT
How do I programmatically enable a stylesheet?
How do I programmatically enable a stylesheet? I'm working on some code that will do theme-switching. So I look at the CSSOM, and it has a StyleSheet.disabled property. That seems straightforward. Just set the disabled property based on whether the stylesheet/link represents the current theme. That gives me something ...
https://stackoverflow.com/questions/79952781/how-do-i-programmatically-enable-a-stylesheet
javascript, css, dom, cssom
1,780,871,631
se_28909718
stackoverflow
FRONTEND_DEVELOPMENT
How can I get an auto-generated file to recognize a method it created itself?
How can I get an auto-generated file to recognize a method it created itself? I have a *.tt file (two, actually, but they are acting similarly, so I'll just talk about one). I have them set just like another project, where they work fine. Their properties are set the same, such as: CustomTool = TetxtTemplatingFilePr...
https://stackoverflow.com/questions/28909718/how-can-i-get-an-auto-generated-file-to-recognize-a-method-it-created-itself
c#, visual-studio-2010, sharepoint-2010, css
1,425,686,563
se_60254712
stackoverflow
FRONTEND_DEVELOPMENT
How to setup SVG&#39;s viewbox, width and height which is scalable and responsive
How to setup SVG&#39;s viewbox, width and height which is scalable and responsive I am new to SVG design. Struggling to scale, zoom in/out with container and make it responsive to all the devices. Is it even possible to design SVG in a way that fits in all the devices and handles browsing zoom in/out functionality? ...
https://stackoverflow.com/questions/60254712/how-to-setup-svgs-viewbox-width-and-height-which-is-scalable-and-responsive
html, css, svg
1,581,900,809
se_40310580
stackoverflow
FRONTEND_DEVELOPMENT
CSS calc with variable height
CSS calc with variable height I have two divs stacked on top of each other. The top div contains an accordion menu, and is 300px tall when fully expanded. The CSS for the bottom div is: height:calc(100vh - 300px) This works great when the accordion in the top div is fully expanded - the bottom div fills up the rest ...
https://stackoverflow.com/questions/40310580/css-calc-with-variable-height
css, variables, viewport-units
1,477,676,851
se_79956392
stackoverflow
FRONTEND_DEVELOPMENT
How to define colors?
How to define colors? As per W3schools: With CSS, colors can be specified in different ways: By color names As RGB values As hexadecimal values As HSL values (CSS3) As HWB values (CSS4) With the currentcolor keyword Is there any advantage of using one over? SO far no source I could find, has indicated any of...
https://stackoverflow.com/questions/79956392/how-to-define-colors
css, colors
1,781,168,578
se_17638804
stackoverflow
FRONTEND_DEVELOPMENT
Can I use @media in an if/else kind of way?
Can I use @media in an if/else kind of way? I have this form placed in the footer of my page (has just one text box and one button). I want to try and apply @media to it, based on the viewport width available ... So for example, in my case the full width this form needs it about 270px or so. So I want to apply CSS to ...
https://stackoverflow.com/questions/17638804/can-i-use-media-in-an-if-else-kind-of-way
css, media-queries
1,373,799,583
se_9808233
stackoverflow
FRONTEND_DEVELOPMENT
Is it possible to put CSS @media rules inline?
Is it possible to put CSS @media rules inline? I need to dynamically load banner images into a HTML5 app and would like a couple of different versions to suit the screen widths. I can't correctly determine the phone's screen width, so the only way I can think of doing this is to add background images of a div and use ...
https://stackoverflow.com/questions/9808233/is-it-possible-to-put-css-media-rules-inline
html, css, media-queries
1,332,345,343
se_38396642
stackoverflow
FRONTEND_DEVELOPMENT
Using CSS to create two equal height layout columns, and inserting three equal height stacked columns inside the right column
Using CSS to create two equal height layout columns, and inserting three equal height stacked columns inside the right column I can't use the table tag nor flexbox. Most of our visitors are elderly people using IE8. I am trying to create two equal height layout columns that floats on the left and right. The left ...
https://stackoverflow.com/questions/38396642/using-css-to-create-two-equal-height-layout-columns-and-inserting-three-equal-h
html, css, layout
1,468,587,124