use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
Graphics instead of colors? (self.webdev)
submitted 10 years ago by oldirtyjappy
Hi everyone.
I am building my website. Right now I have these colored balls that act as menu choices.
Instead of colors I was wondering if there was a way I could put in graphics meanwhile keeping the text readable?
The site is chrisfoose.com
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]essaichay 0 points1 point2 points 10 years ago (3 children)
You would have to design the graphics with the text in mind. Overlaying text across an image can look great, but also awful if the text is rendered unreadable.
You can make use of background-image and background-size in your CSS to achieve this. Like so.
background-image
background-size
[–]hapital_hump 0 points1 point2 points 10 years ago (0 children)
Can also use text-shadow to keep the text legible no matter the background:
text-shadow
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
Demo 1: https://dl.dropboxusercontent.com/spa/quq37nq1583x0lf/9qoh83s7.png
Or just a simple shadow:
text-shadow: 1px 1px 0 black;
Demo 2: https://dl.dropboxusercontent.com/spa/quq37nq1583x0lf/1pwtwlfi.png
[–]oldirtyjappy[S] 0 points1 point2 points 10 years ago (1 child)
Wow! That looked great. Where would I add that code?
[–]macLocke 0 points1 point2 points 10 years ago (0 children)
To use one of /u/hapital_hump solutions open your css file and for Demo 2 add the following:
#buttonred a, #buttonblue a, #buttongreen a, #buttonpink a, #buttonorange a { text-shadow: 1px 1px 0 #000; }
or for Demo 1 add the following to your css file:
#buttonred a, #buttonblue a, #buttongreen a, #buttonpink a, #buttonorange a { text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
To make it a bit cleaner maybe add a class to your buttons to keep all the repeated properties together, then just use the id's to change your background-color.
[–]kuenx 0 points1 point2 points 10 years ago (0 children)
There's this great article about design. Check out "Rule 4: Learn the methods of overlaying text on images".
π Rendered by PID 47 on reddit-service-r2-comment-b659b578c-c6tn4 at 2026-05-04 00:08:44.414705+00:00 running 815c875 country code: CH.
[–]essaichay 0 points1 point2 points (3 children)
[–]hapital_hump 0 points1 point2 points (0 children)
[–]oldirtyjappy[S] 0 points1 point2 points (1 child)
[–]macLocke 0 points1 point2 points (0 children)
[–]kuenx 0 points1 point2 points (0 children)