Category "css"

HTML & CSS: Can't remove spacing between elemens

I'm having a hard time to remove the spaces between html elements. I tried display: inline-block, float: right, ul view and many other ways. As you can see in t

How to change navbar background color in react when I scroll

I would like to make my navbar start out as transparent but when a user scrolls the navbar will change color / background-color. I am using a bootstrap navbar a

Bootstrap 4: How to make top fixed navbar stay in container and not stretch?

I'm sorry for my question is may be duplicated to this:Bootstrap fixed navbar inside div or this:Twitter Bootstrap: How to make top fixed navbar stay in contai

What is the best way to break HTML text on slashes (/)?

I have an HTML table 360px wide, which works great. The challenge is that sometimes a url appears http://this/is/a/really-really-really-really-really/long/url i

Javascript detect if child of parent element has a class set

This is my code: <div id="main"> <div class="myclass"></div> </div> How can I detect if inside of maindiv there is an element

how to remove the bold from a headline?

I have a headline: <h1>THIS IS A HEADLINE</h1> How do i make the phrase "THIS IS..." not to be bold and the rest without a change? couldn't find

Can't define cell height with word-wrap

I would like make the table with auto word-wrap when it possible. I'm using white-space: pre-line; css-class property. But then cell height will be changed. See

Lazyload images in three CSS3 columns

I have a website which displays images in three columns. These are all img tags in a div which has column-count: 3 applied. These columns contain over a hundre

Background image in tailwindcss using dynamic url (React.js)

I have an image url fetched from an API and I want to display it as a background image. Is there any way I can implement this with tailwindcss or should I use s

IE11: Printing infinite pages

Basically, in IE11, when you try to print preview (or print, for that matter) this page (and a few others on this site), the page never renders in the preview p

What is @apply in CSS?

I'm curious what the CSS directive @apply does. I have googled @apply but I couldn't find anything that could explain its meaning properly for me. What is the u

Input border cutout for label cross section [duplicate]

I would like to put inputs label on border cross section and would like to hide borders under label like this I did this by simply making lab

Proper way to position :before pseudo-elements

What is the proper way to position :before and :after pseudo-elements, like pictures? I've been messing around with a bunch of different ways, but none of them

How to make some text between two lines?

Hi I have some text and a line. I need to make the picture look like this: In my HTML code it looks like this: <div class="container"> <div class=

How to set larger column's height equal to small one in pure css?

I'm trying to make 2 divs with the same height: http://image.prntscr.com/image/32ca3f340fba4e2dbd3c7d1e434f0938.png <div class="parent"> <div class="

How to apply a component's [ngClass] to its child element

Is there a way to allow ngClass to be set on a parent element, but redirect it so the classes are actually applied to a child element? <!-- Parent Componen

Is it possible to center an inline-block element and if so, how?

I have an element of initially unknown width, specifically a MathJax equation supplied by the user. I have the element set as inline-block to ensure that the w

Borders not shown in Firefox with border-collapse on table, position: relative on tbody, or background-color on cell

Consider the following HTML: <html> <head> <style> TABLE.data TD.priceCell { background-color: #EEE;

Border not covering whole site - elements out of flow?

Problem: https://postimg.cc/image/tunhwh8qj/ The trouble I am currently having is that the border around my body is not outlining everything. As I have recently

Is there a way to style Google Chrome default PDF viewer

Is there a way to style google chrome default pdf view? I'm trying to change the gray background color to white also make the scroller little bigger for mobile