css

CSS Image not scaling on hover

喜你入骨 提交于 2021-02-10 18:31:31
问题 I've made a responsive image grid and am trying to add a hover effect to it so that the image gets a dark overlay and some text fades in on it. However, I've been having a tough time implementing it. Here's my HTML structure. <div class="tile"> <img src="some_image" class="animate"> <div class="overlay"> <p>Mahatma Gandhi</p> </div> And here's my CSS .gallery .row .tile:hover ~ .tile img { transform: scale(1.2); } However upon hovering over the image, it does not have the expected behaviour.

Change color of icon when hovering over div in which it is contained

爷,独闯天下 提交于 2021-02-10 18:30:45
问题 How can I invert the color of the icon fa fa-clipboard when hovering over the wrap div? <div class="col-lg-6 mbr-col-md-10"> <div class="wrap"> <div class="ico-wrap"> <span class="mbr-iconfont fa fa-clipboard"></span> </div> </div> </div> This will invert the color of the clipboard icon when I hover over the icon itself, but I need it to invert when hovering over the div above it. The default color is black. .mbr-iconfont:hover { color: white !important; } 回答1: Try this syntax: .outer:hover

wordpress add featured image below post title

假如想象 提交于 2021-02-10 18:29:28
问题 I try to display a featured image below the blog-post title. actually my posts look like: WP-header post-title date | author | comments post content tag | category My goal is to get a full-sized-image (featured image) between post-title & date | author | comments Actually I am using a Corpo Theme. Any ideas? Best Regards 回答1: You can fetch featured image using following code and paste it after post-title which should be <?php the_title() ?> <?php if ( has_post_thumbnail()) { $large_image_url

Alignment of rows in nested CSS grid

早过忘川 提交于 2021-02-10 18:22:57
问题 I have nested CSS grids with auto columns ( fixed heights are no solution ) and want the rows of the inner grids of the same row of the outer grid to align with each other - see the example below for illustration: ol ol{list-style:lower-alpha;} ol{display:grid;grid-template-columns:auto auto;} li{display:grid-item;} li.x1y1{grid-area:1/1;} li.x1y2{grid-area:2/1;} li.x2y1{grid-area:1/2;} li.x2y2{grid-area:2/2;} <h2>1. Single Grid</h2> <p> The basic case of a grid layout: </p> <ol> <li class=

Alignment of rows in nested CSS grid

自古美人都是妖i 提交于 2021-02-10 18:22:13
问题 I have nested CSS grids with auto columns ( fixed heights are no solution ) and want the rows of the inner grids of the same row of the outer grid to align with each other - see the example below for illustration: ol ol{list-style:lower-alpha;} ol{display:grid;grid-template-columns:auto auto;} li{display:grid-item;} li.x1y1{grid-area:1/1;} li.x1y2{grid-area:2/1;} li.x2y1{grid-area:1/2;} li.x2y2{grid-area:2/2;} <h2>1. Single Grid</h2> <p> The basic case of a grid layout: </p> <ol> <li class=

Having an image instead of a search button in a search engine, integrating it in the search bar

给你一囗甜甜゛ 提交于 2021-02-10 18:15:17
问题 I am a student working on a project and I am doing backend and I dont have too much experience with html and css. What we do is creating a search engine and giving it different kind of inputs, but we also decided to have an optional front page of our web engine. What I am asking for is someone to give me a hint or help me with make my search_icon.png visible, because for a reason I can't make it shown, and secondly to put it in the search bar which is the main reason I am writing here. I

in css/js: make links on mouse over (hover) shows what is in h1

六眼飞鱼酱① 提交于 2021-02-10 18:15:00
问题 I have a css file that I want to add to an option for links, to make them grab and show the first h1 tag from the linked page, and display it when the mouse is hovered over the link (as a title, or alt text). (or how to do it with a central javascript file? Example: http://en.wikipedia.org/wiki/Main_Page any link in that page, shows the title of the linked page. 回答1: Unless I'm missing something to your question, you're just talking about the regular HTML Title attribute. At least, on your

Jquery, Css Moving between week days with previous next buttons - Carousel

混江龙づ霸主 提交于 2021-02-10 18:13:52
问题 I have the screenshot https://imgur.com/GbNuHg0 for days of week, I want to show only 4 days and use prev-next btn to move between them, I'm very new to css so please help me in how to do it I need to show Only 4 days and then move forward by next or prev btn to see the next or previous day so it should animate slowly so if you check class move and increase or decrease the value of translate it will works but how to do it by only CSS I tried with jquery and it is moved it just one time $("

How to make background image cover entire screen and ignore aspect ratio in CSS [duplicate]

女生的网名这么多〃 提交于 2021-02-10 18:13:14
问题 This question already has answers here : How to stretch the background image to fill a div (10 answers) Closed 3 years ago . The background-size: cover property makes the image take the entire screen but it maintains the aspect ratio so only a portion of the image is seen on bigger screens. How can I make it ignore aspect ratio so that the image takes up the entire screen AND the entire image is visible? HTML: <html> <head> <link href="styles.css" rel=stylesheet> <title> Enjoy ;) </title> <

Having an image instead of a search button in a search engine, integrating it in the search bar

蹲街弑〆低调 提交于 2021-02-10 18:08:37
问题 I am a student working on a project and I am doing backend and I dont have too much experience with html and css. What we do is creating a search engine and giving it different kind of inputs, but we also decided to have an optional front page of our web engine. What I am asking for is someone to give me a hint or help me with make my search_icon.png visible, because for a reason I can't make it shown, and secondly to put it in the search bar which is the main reason I am writing here. I