when i use object-fit or background-size, I cant have fix the image [closed] - css

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 hours ago.
Improve this question
enter image description here
when I use svg or images I cant fix it from sides

most of case when you want use the backgrounf images .
for example
body {
background-image: url("paper.gif");
background-color: #cccccc;
background- size : cover;
}

Related

How can i create a custom shape with css? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 months ago.
Improve this question
this is the desired outcome
I tried using clippy but wasn't able to achieve that shape
You could try to use mask-image for hide some pixels in image.
.element {
mask-image: url(star.svg);
}
Inside url() set image url.

How do you show an animation behind a text mask in CSS? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I recently came across a cool effect where the developer displayed an animation that was masked with text in CSS. You can find it on the headline of this page here: https://www.adobe.com/products/xd/features/whats-new.html
How do you achieve that?
As it turns out after a little of investigation it is actually quite simple:
You just put an SVG animation into your surrounding container as a background, and then use {mix-blend-mode: lighten;} together with {background: white} on the text:
.container {
background: url(https://www.adobe.com/content/dam/cc/us/en/products/xd/features/knockout_animation.svg);
}
.container h1 {
mix-blend-mode: lighten;
background: white;
}

How to style Bootstrap menu like a V? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Is it possible to style the menu like this (see link http://i.stack.imgur.com/Z5YB6.jpg) in Bootstrap using CSS?
How to I do?
Thank you in advance!
You have to use arrow shape image facing down words in background of the menu.
for bootstrap you can use it in .navbar-default class
.navbar-default {
padding-bottom: 70px;
background:url('imagename.png') no-repeat bottom center #000;
}

Extend header to full width on Wordpress.com theme with custom CSS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm looking to extend the header image to be full width on a client's blog which is hosted on Wordpress.com, but it doesn't seem like the theme supports it natively. Something seems to be cropping the image automatically.
Is there any way this can be done using CSS?
http://ryanmangansitblog.com/
Thanks in advance!
this is caused because of the <p> element located in #hero .hero-content which has a max-width variable set in style.css, if you remove this rule #hero .hero-content p { max-width: 770px; } your problem should be solved, and the image should be shown full width.

Div background doesn't show (CSS) [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Pretty common problem, judging from what i've been seeing so far. Most of the time it's url problem or backslashes etc. Not this time though
<div id="est"></div>
#est {
margin-left:55px;
margin-top:55px;
background-image: url(http://blabla.com/wp-content/themes/blankslate.3.3/blankslate/images/est.jpg);
background-repeat: no-repeat;
}
I've been trying everything. Local url/full url, quotation marks (single and double), bacground-imgage:/background. No luck...
Html file reads styles sheet.
Thanks in advance!
Your div has no height or width... add both and you will see it. ;)
Alternetively add content to your div.
Your background image link gives a 404 error. You need to put in a proper link!

Resources