How to apply an effect of white lines crossed to a div with css - html

How to apply an effect of white lines crossed to a div with css as shown in the following image link:
http://s2.subirimagenes.com/otros/previo/thump_9266640efecto.jpg

Related

button background colour overlaps flexbox container

I have created a button inside a flex box at the bottom. When i go to inspect element I can see that the background colour overlaps the flex container as i had increased the height of the background colour of the button. so, how can I move this so that the background colour no longer overlaps the flex box? this is only visible when using inspect element but annoying.

Only the background of div is hidden by img?

A div which contains an image has rounded corners using border-radius and overflow:hidden.
The div also contains another div with an orange background and some white text.
When the second div is placed over the image using a negative margin, the result is that the orange background is hidden behind the image, but the white text appears over top of the image. Why is this?
Fiddle: http://jsfiddle.net/nq9Jv/
Further question: how do I make the orange div appear fully "above" the image, bearing in mind that I cannot use position: relative because that would take it out of the flow and thus not allow the border radius of the first div to conceal a part of the second.
I am not sure the reason that the orange background doesn't appear above the image when using a negative margin.
I have tweaked your example a bit, and by using position: relative on the parent element and position: absolute on the child element, made the orange div appear above the image while maintaining the border-radius concealing the child element.
http://jsfiddle.net/nq9Jv/4/
Is that what you want?

Why isn't the background of a margin same color as the page/element background?

I had to add a 20px margin and the color of that margin is white. This has never happened to me and I'm wondering why it isn't the same color as the page/element background.
Here is what it looks like:
Here is the page it's on:
http://www.bolistylus.com/
the <div id="page"> element has a background set to White (style.css line 325)
The element in question #site-generator has no parent background specified, so it uses the grand-parent element #page.
You can either change that styling on #page or add a background color to the footer element
Try using PADDING instead of MARGIN.
Padding - defines space between border and element content.
Margin - defines space between border and other outer elements.
To learn more regarding the differences, please refer here.

Constructing Borders Around Adjacent Elements

Is it possible to have a continuous border around adjacent html elements that have different heights?
I have tried overlapping the elements by the border width and setting the left border of the second element to white, but this creates a black/white bevel on the corner (http://jsfiddle.net/h4FwJ/). I would like to achieve the same look as in that fiddle, but without the bevelling.
Change the div1 style to this
border-left-width:0px;
margin-left: -10px;
background-color:White;

background not visible due to positioning

The background color of list is not displayed properly. This problem started after I floated left and right. How to fix this.
Here is the fiddle
Similarly I've problem with the div .wrapper. The shadow should be way below the content and there should be a white color background beneath . here is fiddle
Add to the CSS:
ol {overflow:hidden;}
and (2nd question):
.wrapper {overflow:hidden;}