Category "css"

How to apply the style only if next element has specific class?

Markup: <li class="divider"></li> <li class="active"><a href="#">Home</a> <li class="divider"></li> <li><a h

Bootstrap 3 dropdown menu changing background on submenu focus

I have changed the background colors of my Bootstrap menu, but the background color of the main dropdown item in the list is changing when the submenu (the menu

Images load fine locally, but not on webserver

been looking around here for a bit but still haven't found an answer. Have an issue with a site I'm working on. Site is entirely self contained in a folder. Tr

Set mouse wheel to horizontal scroll using css

I want to design a horizontal page. When I use mouse wheel it just scrolls content vertically. How can I use horizontal scroll by mouse wheel? Does CSS support

:before && :after pseudo elements not showing Firefox

Firefox is not displaying :after and :before but they do show in Chrome. Firefox & Chrome: Viewing the source directly in Firefox shows the CSS is there:

Creating a plain html home page AMP with WordPress running the other pages

Gday I like to know how you would go about creating a home page in plain html and have WordPress run the other pages? The reason is I’d like to create

Why is "cursor:pointer" effect in CSS not working

I set cursor: pointer for .about > span, but when my mouse hovers on those texts in <span>, the cursor does not change into pointer mode. I would like

CSS z-index not working with child-elements

Ive tried for a personal project to do menus, that are opened on highest layer (z-index 3) so they overlay my board, but the header in which they are is at lowe

Adjusting position of CSS drop down menu

I am trying to modify a CSS Tab w/dropdown menu to add another level of menu (don't ask why). I got it working, but I want the second drop down menu (the one wi

Trying to target specific links for styling in CSS

I'm trying to target just the links in my nav bar as I have inserted other dummy links further down in my home page that I want to style on their own. I have tr

What is the difference between the Descendant combinator and the subsequent sibling combinator? [duplicate]

To my knowledge, the descendant combinator (space) targets child and descendants of the parent element. the subsequent sibling combinator (~)

What is the difference between the Descendant combinator and the subsequent sibling combinator? [duplicate]

To my knowledge, the descendant combinator (space) targets child and descendants of the parent element. the subsequent sibling combinator (~)

What is causing my text to be center aligned in desktop?

I'm using Bootstrap 4's accordion on this page, and the text of the last item of the accordion is being centered. I'm not using text-center nor do I have a CSS

Approach to creating variants with styled components

What is the best way to create variants using styled components? Heres what i am currently doing. const ButtonStyle = styled.button` padding:8px 20px; bor

Tailwind css backgroundImage doesn't work for me

all, I'm trying to make tailwinds backgroundImage solution work, and I found help for many other tailwindcss problems here or on github, but not for this. It's

How to get rid of table borders in markdown?

This is my markdown code |Time | Length | Speed | Mass | | --- | --- | --- | --- | | -Millisecond | Millimetre | Kilometre per hour | M

Mime type error when adding a CSS file to Angular

I'm trying to build a static site using Angular. What I want is to have some global css/js/image files to be added to the index.html This is my code in index.h

Box shadow on items in owl carousel being cut off

I have got a box shadow on every element in my owl carousel. Problem is the outer most elements have their Box shadow cut off because of the overflow: hidden th

Background image not showing in Safari

I am working on a responsive design and the class "bgMainpage" is having a background image but it is not showing on Safari on all the devices. I have applied b

Link CSS from another folder?

I am making a website and I am trying to find a way to link my CSS file that is in other folder but I have no idea how to do it. At this moment I got it in the