HTML or CSS code to repeat properly skew pattern [closed] - html

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 4 years ago.
Improve this question
I have a pattern, that i would like to use on my website as background, that has skew shape. I wonder if there is an HTML or CSS code to shift second background closer to the left, to hide white get and make it look better. Thank you in advance.
skew pattern

Create a new image that is shifted horizontally so you have rectangle pattern. I created image but it is not as good as it can be because I do not have original.you can use it.
Your new image is here
div {
background: url(https://i.stack.imgur.com/pvap7.png);
}
<div style=width:1000px;height:1000px></div>
Instructions to create the image
I use program GIMP (http://gimp.org/). It is free.
Remove white area (make it transparent) using Fuzzy Select Tool and Delete key. If transparency is not enabled, right-click the layer and enable it.
Duplicate the image (Ctrl-C, then Ctrl-V)
Move it using Move horizontally so there is no transparent area between the two copies.
Press Ctrl-H (anchor the floating layer)
Right-click the top layer and Merge Down
Crop the image (Image→Autocrop Image)
Crop it to the center (Image→Canvas size…), set width 264 (width of one “block”) and then click Center button
Manually remove white pixels
Export it as PNG (in File menu)
Use it

Related

Changing the column labels color based on width of chart [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have created a bar chart that has the values of each of the columns at the end of each bar. The color of the bars is the same as the text of the values. The problem is that based on the width of the container/browser by default the values move inside the bar. But then you can't read the text as the bar and text are the same. I would prefer to have the values outside the bar but when they have to move inside the bar due to space is there a way to change the font color to white so that it is readable? Here is an example of the chart.
https://playground.anychart.com/DAlu15WO/2
Unfortunately, there's no possibility to detect if the label was moved inside the bar or not. But you can enable label background to increase its readability like in the sample.
Pay attention to lines 96-97.
All available background settings you can find in the list.

Hot to center those 3 divs into the body [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
Im wondering how to center those 3 divs into he body, i created 2 versions of the row, one with an extra outer wrap around the column and one without, Unfortuinatly since this html created with a page builder (WP visual composer) so i dont have 100% freedom to control the html structure. I tried margin: auto but couldn't make it to work.
You can find the divs im talking about on this page.
https://bonmedico.de/test/
Thanks
This question will be closed very soon because it's not according to SO rules. ( Read comments to your question to find about that ). You really should put more effort when writing questions.
But i took a look at your website. You can solve your problem in 2 ( maybe more ) ways.
add justify-content:center to the parent row of those 3 columns. Being a display: flex element it will center them horizontally.
using visual composer is easy. Just add 2 small columns ( empty ) left and right and a larger column in the middle. Something like 1/4 1/2 1/4. And in that ' bigger ' column you can add a new row continaing 3 columns ( like you have now ). Or there are more possibilities to do this. Just ' play ' around with visual composer

Remove padding from text input [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
Is it possible to change the inner padding of text field? Currently when you take a normal text field in html and write something in there it'll have padding in the beginning and in the end of it. The numbers written in my text field have at most 3 digits and currently the padding pretty much covers the width of 1.5 to 2 digits and already with 2 digits (see number 10 on image) it'll get a bit dragged out.
Added image of it as well, in the first field the padded area is marked with red line.
I dont have code but
.my_input_class{
padding:0;
}
Or, really, the size of the text box needs to be a bit larger, or you put a character limit on it

onmouseover just on the non-transparent part of the image

I'm stuck with the menu below. All the website needs to be in HTML.
http://hpics.li/740c57f
WHAT: I want to have an hover image for all the different parts when the mouse go on it. (event/brand/website/print/UI/VIDEO)
PROBLEM: The images are overlapping and the mouseover start when i'm on the transparency of the png.
SOLUTIONS I TRIED: Imagemap to detect the zone and then put javascript code inside the AREA. doesn't work.
Imagemap to detect the zone, put an id in the AREA and use a separated JQUERY with .hover(function(). doesn't work.
Use z-index: impossible because there will be always an image that will hide the one under.
QUESTION: If I can't use ImapeMAP to select my zone and use CSS or JQUERY, how can I do ?
Thank you so much for your help!
Might be too late but the exact case can actually be solved by a class I wrote around 3 months ago. It allows you to check whether you're on a transparent area or not and also check for other elements behind the transparent area, this allows to overlap multiple transparent images and correctly jump from one image to another at the correct point.
http://www.cw-internetdienste.de/pixelselection/

How can I convert foreground color in a .png image file from blue to black? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have a .png image file of a company logo with blue foreground on white. Can I convert it to black foreground on transparent background, using freeware tools?
I've done this before using imagemagick's 'convert' but I barely remember the exact incantation. Google to the rescue!
Search for "imagemagick replace color". One of the link is this:
http://studio.imagemagick.org/pipermail/magick-users/2006-May/017672.html
Basically it's something like this:
$ convert input.png -fill to_color -opaque from_color output.png
If the color is exact then the above should do it. Otherwise use the fuzz option:
$ convert input.png -fuzz 5% -fill to_color -opaque from_color output.jpg
Example:
$ convert b.png -fill 'red' -opaque '#f2efe9' c.png
That will change the color '#f2efe9' to red in the file b.png and save the output as c.png
All credit goes to Anthony Thyssen from the google search result.
As for setting the transparency:
$ convert input.png -transparent white output.png
Good luck!
As you taged you question: gimp is good tool to do that.
Use the magic wand tool to select the area to colour correct. Then select the colour to change to by clicking the coloured square. Once that is done, use the paint bucket tool and click inside the selected area.
Also, Google is your friend.
http://www.youtube.com/watch?v=uO-h7w2UNp4
As other people have mentioned, you can do this in GIMP and googling helps :P. But suppose that you are not sure which terms to google, here are the steps:
1- Change X color to Y color foreground
Place cursor over the image, right-click > Select > By Color. Click on an area with color X (in this case blue). All blue color will be selected. Then right-click > Edit > Fill with FG Color (where BG Color will have been set to color Y). Done; all X color is now changed to Y color.
2- Change Z color to transparent background
First, make sure that there is an alpha channel in the layer by selecting Layer > Transparency > Add Alpha Channel (if the option is greyed out then there is already an alpha channel, no further action needed). Then place the cursor over the image, right-click > Select > By Color. Click on an area with color Y (in this case white). All white color will be selected. Then right-click > Edit > Cut. Done; all Z color is now transparent.