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
I have included a transparent png in my Website and it has white pixels on the borders and they look really buggy.
I have double checked that's not the image itself that includes this pixels and also no border is set in CSS.
Would be happy, if anyone knows this issue and can help.
Here is a screenshot of what I mean:
You can use vector applications to create a logo. Like the "Corel Draw". I created your logo for the sample
This is not possible in CSS.
The white border is included in the image.
The solution is to use an image editor like Photoshop :
Select the transparent area with the Magic Wand Tool
Dilate 1px (or more if needed)
Press delete
Save as PNG
You will have to use an image editor such as GIMP or Photoshop.
If you got this from an artist you can complain to them that their exported image has a white border. Otherwise you'll have to use a brush and erase them yourself, which can be painful.
Problem is solved!
I have saved that image for web with a different color space and that caused the issue :/
Related
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 months ago.
Improve this question
This is very weird problem. I can't solve it.
I am embedding YT video using the code provided by YT, using:
<iframe width="584" height="330" src="//www.youtube.com/embed/N739-Wzmf18" style="border:none;" allowfullscreen></iframe>
Next to it I am adding some text with title that has some color.
The problem is the color text is getting dark. When the website is loading or refreshed it has a good color for a second and then it turn to much darker.
The rest of the text that is white is not affected that way.
Also the "footer" that is a "separate-being" and also has some text in color that color is turned to dark. In this case I just use simple to color that text.
When I getting rid of yt code (or even just src="") the colors are ok again.
In one case when I got only YT videos without text I used insted of and it solved the problem for this case for the "footer". But it not working when there is some text added next to YT video.
I tested on Chrome, Edge and Brave (maybe they use the same engine)
You can check it yourself:
Select SHORTS
Click Refresh couple of times - you shoud see that red color titles and red year on footer flickers from bright to dark.
Select another menu like INFO to compare good red color with the darken one (the footer example will be the best)
The link:
http://www.mateuszstaniszew.pl/index.php?m=1
I'm going to take a stab in the dark here and suggest that your problem is with font-weight rather than color. At least for me, bolding the text looks like the closest to page-load render.
Try adding font-weight: bold; to .text-title in your CSS.
My theory is that an asynchronous script is injecting some styles that overwrite wherever .text-title is inheriting the bold weight from. I can't find the proof in your styles, but I'm feeling optimistic :)
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 7 years ago.
Improve this question
I've just edit one page, and in my local computer its get perfect. I made the things in such way that the navigation menu still in a position in with it got a good look in contrast to the background image (transparent navigation background, with black characters over a part of the background menu where it is white). It's looking like this in my local machine:
But when I send it to remote servers, it get ugly, in unless two different ways, as follow:
This first, ugly, and;
This 2dn, even more ugly.
What could be happening?
First off - The second host is using an extra element, probably for tracking, or alike, which causes your style for div-elements, to apply to that aswell. You should use specific id's or classes for your elements, instead of just "div". Especially with "background"-properties.
You could solve this by adding following:
--some code--
<body><div><header></header>
--rest of the code
To
--some code--
<body><div id="container"><header></header>
--rest of the code
And changing in style.css: div {....to div#container {....
In my browser, the first link looks like your image, as it should, aswell.
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 7 years ago.
Improve this question
I added an background image inside a container that was smaller than the image. It was part of the plan. Even though it automatically rotated itself 90deg, without me touching anything (there was 3 other boxes with the exact same settings, not the same image though.). Any idea how to fix that, or what it is happening?
EDIT: Issue solved, Kyle Shrader told me to use and EXIF tool, which I did. That told me the photo was rotated 90 degree, in the metas, even though it looked fine front end. I used an exif editor and put it on Horizontal (normal value for a photo) instead of Rotated 90 CW.
If the image has EXIF orientation set, some browsers will interpret this and automatically rotate the image. You can use a tool like EXIF Data Viewer to quickly check that this is not the case for you.
If this is the case, you can solve the issue in your style sheets or in the image file itself.
To solve this problem with CSS, use the image-orientation css property to set your image orientation. image-orientation: 0deg; is what you could use, in your case.
To remove the EXIF tag from the file, you can use a tool like theXifer EXIF Purge
edit: replaced the originally linked online solution with an offline solution. With each there are concerns. Online solutions pose an issue to leaking company information or assets. Obviously you should only use trusted offline solutions, since this could pose a security risk. Thank you for the recommendation, #TomerOfer
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 8 years ago.
Improve this question
see the background Grid , on this site hxxp://www.solarpowergetics.com/ It is a Magento website ,How can I get that image or is that CSS
That's CSS. Looking at the source, it's an image that is repeating. Each div has a partially transparent background that would make the lattice appear to be fading towards the center.
Try Right-Click and Inspect element in the future and navigate to the body or html element. Usually your answer will be there
A background will always be applied via CSS (well or inline HTML styling). Best thing to do is to open up the developer toolbar (Ctrl + I for Windows or Alt + Cmd + I for OS X) and look for the html or body tag in the HTML. Click on either and it'll bring up the CSS. Then you just need to look for the background property and that will either provide you with a colour like...
background: #ffffff;
Or if an image is used, it'll probably look something like...
background: url(myimage.png);
There are many different variations depending on what they want the background to look like. If an image is used, right click or control click to open it in a new tab. Browsers like Chome will make the image link and active url so you can actually visit it and see the real image.
Hope this helps!
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 8 years ago.
Improve this question
I've taken out all of the styles on a page, and I'm still seeing this really odd font border issue. All of the text is really weighted, and I've ran out of things to debug. Here is what it looks like close up:
See the light blue and tan edges? That's what it looks like close up, but at 100% it just makes all of the text look really dark and weighted. Oddly enough the only fix I've been able to find is changing the z-index of a certain element(a header), but that won't work for the long term b/c it renders the header unclickable. I'm using Chrome 36 on OSX, and it turns out that this occurs even with as simple a page as:
<html>
<head>
</head>
<body>
link
</body>
</html>
Anyone have any idea?
That's not a border, that's the lcd smoothing algorithm. It works by assuming a particular orientation of RGB cells on the LCD monitor, so it can turn on e.g. 1/3 of a pixel at a time for a "smoother" font. You can turn off smoothing in Windows by disabling "ClearType", but know that your viewers are likely to have it enabled.
References:
http://szafranek.net/works/articles/font-smoothing-explained/
http://www.davidjnice.com/articles/windows7_disableClearType.html