Text Shadow by CSS - css

We are using different static images as per year to display.
I want to make it dynamic by adding image without number and adding number. Its looks good except. I tried text-shadow css property but does not give same result like image.
Is it possible to add shadow by css which goes to end of left corner?

You probably have to use multiples text-shadow to achieve this style.
text-shadow: 1px 1px 0 #087194, 2px 2px 0 #087194, 3px 3px 0 #087194, 4px 4px 0 #087194, 5px 5px 0 #087194;
https://jsfiddle.net/h462ruey/33/

Related

Displaying a shadow that follows the inline box around text content closely

I am trying to achieve an effect where I have a shadow that follows text content closely.
I've documented my progress here: https://codepen.io/wolfr/pen/QEGOdY?editors=1100
text-shadow doesn't fit my needs. It produces an inferior shadow (test: https://codepen.io/wolfr/pen/KMNyXj?editors=1100 )
The problem with my current approach is that it's pretty bad for people using screen readers.
I've tried several methods to hide HTML content from being read by sceen readers in another pen here. They include using media queries and the speak: none attribute. None of them work. I can't position the box off-screen (the classic method) since I actually needs its layout. I've also tried hiding content in a :before attribute but that doesn't work either.
You want make a shadow that follows close the text around? If do, you can use multiple text-shadow in order to make a more elaborated shadow.
p {
color: #d53400;
font-size: 32pt;
font-weight: 500;
text-shadow: 2px 0 8px #555, -2px 0 0 #555, 0 2px 0 #555, 0 -2px 0 #555, 1px 1px #555, -1px -1px 0 #555, 1px -1px 4px #555, -1px 1px 0 #555;
text-align: center;
}
<p>Text shadow<br />This is another line</p>

Some properties destroying other properties?

Codepen page
Webpage hosted with Google Drive if you want to see it with pictures (front.html)
relevant code:
.row1 img{
/*box-shadow: inset 5px 5px 7px rgb(0,256,0);/*the line that breaks .border-blue and .border-orange shadows*/
}
.blue-border{
border: 4px solid rgb(0,102,179);
}
.orange-border{
border: 4px solid rgb(208,78,29);
}
.title-blue,.blue-border,.title-orange,.orange-border{
box-shadow: 5px 5px 7px rgb(117,117,117);
}
I'm creating a webpage for my school, and I need to create inset box-shadows on 4 elements: the two images in the 1st row, and the .blue-border and .orange-border divs in the 2nd row. However, there is already a box-shadow property applied to the borders, so applying a new box-shadow property cancels out the original ones. Also, when I apply a box-shadow property to the images in .row1 (ln 25), the box-shadow of the borders breaks. How do I circumvent the fact that CSS can't handle 2 identical properties with different arguments? And why does the box-shadow on the images in .row1 break the box-shadow of the .blue-border and .orange-border classes?
Thank you!

How to achieve very slight text shadows in CSS?

property in CSS is a good way to have shadows for dynamic text in HTML. However the browsers (especially safari, firefox) render a quite strong shadow with quite low settings:
text-shadow:1px 1px 2px #000; // still quite strong
text-shadow:1px 1px 2px #000; // still quite strong
text-shadow:0.01em 0.01em 0.01em #000; // some browsers do not even display this
How can I achieve cross browsers-compatible text shadows which are still not as strong as the first two given text shadows, but still displayed? Is there a solution for this problem?
Try using a "weaker" colour:
text-shadow: 1px 1px 2px rgba(0,0,0, 0.25);
Adjust that 0.25 as needed - a value of 0 will be invisible, and 1 will be the same as the #000 you're currently using.
You could try semi-transparent text-shadow:
text-shadow:1px 1px 2px rgba(0,0,0,0.25);
Demo

Apply style to fixed div through CSS3 when scrolling down

If you go to this website you see that when you scroll down the following style is added through javascript for the top navigation div (#yucsHead):
-webkit-box-shadow: 0 0 9px 0 rgba(73,15,118,1)!important;
-moz-box-shadow: 0 0 9px 0 rgba(73,15,118,1)!important;
box-shadow: 0 0 9px 0 rgba(73,15,118,1)!important;
border-bottom: 1px solid #490f76!important;
I'm a bit new to CSS3 and noticed that CSS now has many features that you first could only do in Javascript. I was therefore wondering whether this is possible through CSS3 as well. I prefer to do things through css where possible.
For finding how much the document has been scrolled we use scrollTop() in jquery, and based on that styles are applied.Your example site does that...I dont think there is a pure CSS 3 solution for this..

css text shadow

I'm working on a website and I want to add some shadow to my text, is there an easy way to do this using only css? i tried placing a darker clone of the text under it, but that would be hard on different sizes.
You can achieve this using the CSS3 text-shadow property. The general format for specifying this is:
text-shadow: *left-offset* *top-offset* *blur-distance* *color*;
Example Usage:
text-shadow: 2px 2px 1px #000000;
You can create multiple shadows by separating their definitions with commas:
text-shadow: 2px 2px 1px #000000, -2px -2px 1px #111111;
Older versions of IE do not support this property, though; you need to use a filter:
filter: DropShadow(Color=#000000, OffX=2, OffY=2);
Where you replace the values with whatever your preference is.
Note: The answer to your question can be found quite easily using the great search engine Google. Please try that next time before asking a question.
Another note: You really don't have to mention that the website you're working on is an adult website. It's completely irrelevant and might even be a bit dislikable to some users.
Welcome to Stackoverflow, though! I hope that helped!
you can use css text-shadow any times you want on a text:
text-shadow:1px 0px 2px grey, -1px 0px 2px grey, 0px 1px 2px grey, 0px -1px 2px grey;
will create a shadow whole around the text.

Resources