#css tips
Explore tagged Tumblr posts
Text
✧・゚: Customize your highlight color! :・゚✧
I recently came across a blog where when I went to highlight some text I noticed it was a unique color!!! (」°ロ°)」
AND IT'S SO SIMPLE TO DO
all you do is go to your css file and add this:
::selection { background: <hexcolor> }
Enjoy!! ♡⸜(˶˃ ᵕ ˂˶)⸝♡
#codeblr#progblr#programming#tech#coding#resources#frontend#studyblr#aesthetic#css#html#these little details make me so very happy#css tips
1K notes
·
View notes
Text
I learnt the 'vw' unit in CSS~!
% and rem/em units weren't working properly for the responsiveness so I search online for other units I could use and I came across vw and now I'm satisfied! Scales semi-smoothly~! 😏
Using vw means the font size is directly proportional to the width of the viewport.
You don't need to worry as much about setting breakpoints for different screen sizes. The font size adjusts automatically based on the viewport.
Hope this helps other people learning CSS and working on making their site responsive! I used the vw unit on the font-size, padding height and width of the elements! Might need to add it to the box-shadow property too? 🤔💭
#codeblr#coding#progblr#programming#studyblr#studying#computer science#tech#css#css tips#comp sci#programmer
85 notes
·
View notes
Text
Convert HTML to Image: A Step-by-Step Guide ✨
Do you want to turn some HTML code you've made that's on your website and have a way to convert it into an image for you to save?
Well, look no further! I too wanted to do the same thing but funny enough, there weren't any straightforward tutorials out there that could show you how! After hours of searching, I finally discovered the solution~!
This is an old tutorial I made 🐼
💛 Set your environment
Before we dive into the conversion process, I'll assume you already have your HTML code ready. What you want to learn is how to turn it into an image file. You should have a good grasp of HTML and JavaScript. For this tutorial, we'll use the following HTML code example:
We won't include the CSS code, as it doesn't affect this tutorial. The JavaScript file (script.js) at the bottom of the body element is where we'll add the functionality for the conversion.
Your page should resemble the following:
As you can see, the "Click me" button will handle the conversion. We aim to convert everything within the div.info-div into an image.
💛 Using the html2canvas JavaScript Library
The html2canvas library allows you to take screenshots of webpages and target specific elements on a screen. Here are the steps to include the library in your project:
The steps to put the library in your project:
Visit the html2canvas website for more information.
Copy the CDN link from here
and include it in a script tag in your project's head tag in the HTML file:
That's it for including the library on the HTML side. Now, let's move on to the JavaScript code.
💛 JavaScript Functionality
Here's the JavaScript code to handle the conversion:
In this code, I want to turn the whole div.info-div into an image, I put it into a variable in const div = document.querySelector(".info-div");.
I also put the button into a variable in const button = document.querySelector("button");
I added a click event listener to the button so when the user clicks the button, it will follow the code inside of the event listener!
You can find similar code like this in the documentation of the html2canvas library:
What is happening here is:
We add the div (or what the element we want to take an image of) into the html2canvas([element]).then((canvas)
Added the image file type url to a variable = const imageDataURL = canvas.toDataURL("image/png"); - You can replace the png to other image file types such as jpg, jpeg etc
Created an anchor/link tag, added the href attribute to imageDataURL
The download attribute is where we will give the default name to the image file, I added "dog.png"
Perform the click() function to the anchor tag so it starts to download the image we created
And that's it!
💛 The End
And that's it! You've successfully learned how to turn your HTML into an image. It's a great way to save and share your web content in a unique format.
If you have any questions or need further clarification, please comfortable to ask. Enjoy converting your HTML into images! 💖🐼
#my resources#coding#codeblr#programming#progblr#studying#studyblr#programmer#html#html css#javascript#neocities#coding tips#html5 tutorial#html tutorial
148 notes
·
View notes
Text
Websites to practice Front-End
(22/02/2023)
Today I wanted to share websites to practice your frontend skills.
Front-end is complicated for my head (ask me to solve an algorithm with structure while but not to center a div HUEHHUE).
BUT at the same time I love a well done and coded design/ui. That's why today I want to share resources to help you train
1- Front-End Practice
They have 3 levels, beginner, intermediate and advanced. There's no "answer" so you can't copy the code, it's just you trial and error until you get to the template (which really is a website that exists)
One thing I thought was really cool here was that it tells you what you're going to practice the most in the exercise, color palette and search features.
It's very interesting for a front-end not to be dependent on a tutorial, because from what I've seen in interviews, they ask you to make a layout and you won't be able to make one yourself if you don't learn to break down a single layout from the beginning and try and making mistakes until it's perfect.
2- DevChallenges
I find the projects not only beautiful visually but also interesting to practice. Here you already have the solutions that other people recommend, but again I think it's best for us to try and make mistakes until we get similar.And it also sorts the levels.
Here an example:
Cool huh? Well, I hope this helps someone who is looking for projects to practice with. We can invest a lot of time trying to make a layout, so having something ready I know helps a lot.
I wish you good studies and a great Wednesday, drink water.
#front end#frontenddevelopment#html css#html5#full stack developer#static website design tools#css3#javascript#reactjs#software engineer#practice#studyblr#studyblog#codeblr#resour#study tips
301 notes
·
View notes
Text
the things we do for fics, I swear. I spent probably about 20 hours in the last month learning all about CSS and the limitations of text hover boxes and how they're not responsive unless you're in Java and now I have all this random, highly-specific knowledge about CSS tooltips floating around in my brain. I was a history major and I write smut for fun, like what am I doing here
#css#ao3#anyway#if you want any tips on how to do hover text boxes#let me know#I have watched every single tutorial on youtube#I even got on github and all those sites#there's so much you can do with CSS#but also so much you really can't#personal#writing things#fic#myfic#theresurrectionist#this was all for the anons who gave good feedback on bloodletting being hard to read#I tried my best and the hover text now is the best I can do in CSS#I swear#I just hope you see this and know that I truly tried to solve it
74 notes
·
View notes
Text
Scrollbar-width property
To define scrollbar thickness or to hide it, a good alternative to ::-webkit-scrollbar
Documentation
Compatibility
15 notes
·
View notes
Text
HOW TO ADD LINKS TO YOUR BIO
Paste the above code into your bio, replacing the link section with the full link and the text section with your desired text. Be sure not to leave a space when copying over.
If it's breaking, or you're lost, check this post here.
*note: these links will only appear in your mobile/automatic theme. if you have a desktop theme with a custom description this method will still work.
#tumblr themes#themes#tumblr pages#tumblr codes#beginner coding#page theme#tutorial#coding#how to#for beginners#links#css#html#on the old stone wall#tumblr#tumblr tips#links in bio#how to put links in bio
52 notes
·
View notes
Text
18.03.2024
Today was a decently normal Monday. My teachers informed me today that I might be getting an essay I completed a while ago and getting my science test results back soon.
After school, I tried to start the home page of the website I'm currently building Project.Spider and I would like to say that thanks to the help of Bing AI, ChatGPT and Visual Studio Code, I could finish one part.
🎧- Shut up my mom's calling - Hotel Ugly
🌲- 3hrs
#aesthetic#studying#books#bookish#bookworm#book community#booknerd#currently reading#bookstagram#student life#coding#python#programming#engineering#developer#html#html css#css#figma#figmadesign#figma to html#studyblr community#productivity#productivity challenge#productivityboost#study#study motivation#study notes#study tips#study with me
7 notes
·
View notes
Text
day 1/100
this is my first day of the 100 days of coding challenge :) im curious about website building and design and i thought html and css would be a good place to start. im following a course on udemy, so i've been learning some of the basics of html and text formatting, and im going to start the html basics course on sololearn so i can practice a little more <3
#im trying my best to finish this challenge cause i can never commit to anything but i wanna see if a career in comp sci is possible for me#so im going for it#html and css tips welcome#100daysofcode#codeblr#studyblr
29 notes
·
View notes
Text
CSS Cheat Sheet | Resources ✨
A CSS cheat sheet by Nick Schäferhoff - LINK
#resources#programming resource#coding resource#codeblr#progblr#studyblr#programming#coding#comp sci#programmer#studying#study tips#css#html5 css3#css3#web design
271 notes
·
View notes
Text
HTML & CSS Comment Tips
One valuable thing I have learned when starting any project is to include comments on your pages to provide a more structured layout.
For example, in HTML files, comments can be made with <!-- --->; anything within that space won’t appear on the page or be read by the browser.
A good way to use this in a page is to outline your areas, like in the image below.
Anywhere on your pages where you have a new section, you should use comments to outline what they are. This helps in a few ways. First, it increases readability for yourself and anyone else reading your code. Second, as your projects grow, doing this helps keep them organized.
It’s easier to add to and edit when you can find the area where you want to make changes or add classes based on the comment tags rather than trying to narrow it down through many <div> tags. Third, it helps with remembering what you were doing.
The same principles apply to CSS files, although comments are left in a CSS file type with /* */.
Using comments to outline the different style groups you intend to use in your projects can help you find the parts you want to edit. In general, using comments is something everyone should do. They are very helpful in JavaScript and other languages when making notes about what a function does or should be doing. You can also leave yourself notes about what you were working on.
#html#css#comments#code comments#tips#leave yourself notes#organization#structure#outline#coding tips
2 notes
·
View notes
Text
thought i'd make a hideous website to go with my hideous css i love you all https://gnomeantics.000webhostapp.com/
#skull css saga#i have tried to make this website as awful as possible please feel free to give me more tips on how to make it worse <3#yapping
7 notes
·
View notes
Text
The History of Ecommerce: 1979 to 2023
It was interesting writing about this topic and seeing the evolution of ecommerce. So many of what we consider as basics in ecommerce now required a lot of innovation from the early businesses that adopted it.
#programming#programmer#coding#developer#software engineering#webdev#css#technology#html#new blog#javascript#javascript tips#linux tips#tips#blogging tips#study tips#life tips#web developers#web development#seo and web design#ecommerce#apple#amazon#nike#pinterest#instagram#ebay#ebaybusiness#business
11 notes
·
View notes
Text
HEYYYYY CAUSE TUMBLR GOING DOWN THE SHITTER FOLLOW ME ON SPACEHEY ILL MOVE THERE WHEN TUMBLR DIES
#words.txt#WOOOO ANXIEY LOST TODAY WE DID IT WE MADE STUFF#also if anyone has html and/or css tips hmu im dying
2 notes
·
View notes
Text
CSS Exam Tips: Your Guide to Success
Preparing for the Central Superior Services (CSS) exam, one of Pakistan’s most prestigious and competitive tests, can be overwhelming. This guide provides actionable tips and strategies to help you navigate the preparation process, improve your performance, and achieve your goals.
1. Understand the Exam Structure
The CSS exam consists of written exams, medical tests, psychological assessments, and an interview. The written part includes six compulsory and six optional papers. Familiarize yourself with the exam pattern, syllabus, and subject weightage.
2. Choose Your Optional Subjects Wisely
Selecting optional subjects plays a crucial role in determining your success. Choose subjects that align with your academic background, interests, and scoring trends. Research past papers to gauge the difficulty level of each subject.
3. Develop a Study Plan
A well-structured study plan ensures efficient preparation. Allocate time to each subject based on its syllabus and your comfort level. Set daily, weekly, and monthly goals to track progress.
4. Focus on Compulsory Subjects
Compulsory subjects like English Essay, English Precis, General Science and Ability, Current Affairs, Pakistan Affairs, and Islamic Studies are mandatory for all candidates. Strengthen your grip on these subjects as they carry significant weightage.
5. Master the Art of Essay Writing
The English Essay paper is often considered the most challenging. To excel, practice writing essays on diverse topics, focus on clarity, coherence, and grammar, and develop a habit of reading newspapers and journals.
6. Stay Updated with Current Affairs
Current Affairs is a critical component of the exam. Regularly read newspapers, watch news channels, and follow credible online sources. Focus on national and international events, economic policies, and diplomatic relations.
7. Solve Past Papers
Past papers provide insight into the exam pattern and frequently asked questions. Practice solving these under timed conditions to improve speed and accuracy.
8. Take Mock Tests
Mock tests simulate the real exam environment and help identify your strengths and weaknesses. Enroll in a reputable CSS coaching center or access online mock tests to evaluate your preparation.
9. Improve Time Management
Time management is critical during preparation and in the exam hall. Practice writing answers within the allotted time and prioritize high-mark questions.
10. Build a Strong Vocabulary
A robust vocabulary aids in essay writing, precis, and comprehension. Make a habit of learning new words daily and use them in sentences to reinforce retention.
11. Enhance Analytical and Critical Thinking
CSS questions often require in-depth analysis and critical evaluation. Develop these skills by engaging with opinion articles, research papers, and debates on current issues.
12. Maintain Consistency and Discipline
Consistency is the key to success. Stick to your study plan, avoid procrastination, and maintain a disciplined routine.
13. Take Care of Your Health
Physical and mental well-being is crucial during preparation. Maintain a balanced diet, exercise regularly, and get adequate sleep to stay focused and energized.
14. Seek Guidance from Experts
Join study groups, attend seminar,read article on website or consult experienced mentors for insights and advice. Networking with fellow aspirants can also provide valuable support.
15. Stay Positive and Confident
The CSS exam is a test of persistence and resilience. Stay motivated, believe in your abilities, and maintain a positive attitude throughout your preparation journey.
Success in the CSS exam requires a combination of hard work, smart strategies, and unwavering determination. By following these tips and staying focused on your goal, you can enhance your chances of securing a position in Pakistan's civil services. Remember, the journey might be challenging, but the rewards are worth the effort.
0 notes