The Blog Market

  • Home
  • About
  • Resources Directory
  • Advertise With The Blog Market
  • Contact Us

Inspect Element: Preview Your CSS Changes in Real Time

December 23, 2014 by jennifer Leave a Comment

When I was first learning CSS, I definitely read tutorials but most of my understanding came from trial and error. In order to learn to code, you have to experiment a little. The best way to temporarily try CSS codes on your website is to use the “Inspect Element” tool. This is your internet browser’s best kept secret. It allows you to go into the code of your website and preview changes before actually committing to anything. Additionally, you can go into the codes of other websites. See a font you like on someone else’s blog? This will help you find out what it is. This tool works in almost every internet browser (except Internet Explorer). Warning: You might turn into a crazy CSS-loving machine and lose a bunch of sleep tonight fixing up your website. It happens.


Inspect Element: The Best Tool for Learning CSS via The Blog MarketTo use this tool, right click (or command-click) any element on your site and select “Inspect Element”.

Screen Shot 2014-12-20 at 10.12.41 PM

A window will appear at the bottom of your screen containing all the codes that make up your site. On the left you’ll see the HTML framework. On the right side you will see the CSS. This is where the fun begins.

Screen Shot 2014-12-20 at 10.13.14 PMMake sure you’ve selected the correct element. The screenshot above shows that <div class=”utility-bar”> is highlighted which is perfect because it is the element I want to change.

The CSS codes on the right side of the bottom window are completely customizable. In the screenshot below, you can see that I’ve changed the background color from #303030 to #fff5e8, making it that nice peach color. So many things are possible with CSS and that’s why I love it. If you need a refresher, read my intro to CSS post!

Screen Shot 2014-12-20 at 10.13.44 PM

Keep in mind this is all just a preview. If I really wanted to change the background color of my utility bar to peach, I would have to go into my CSS editor and add that code. When changing up my blog, I always use the Inspect Element tool before putting any real codes into my blog. It speeds up the process and helps me from making too many coding mistakes.

For a list of CSS attributes, properties, and definitions, take a look at my CSS cheat sheet! If you have any questions, feel free to ask them below in the comments. 🙂

Leave a Comment

Intro to CSS + Why You Should Use It

December 15, 2014 by jennifer Leave a Comment

Hope you guys had a restful weekend! Today I’m going to talk about my favorite design topic ever – CSS. If you’re following my other blog Earl Grey, you may have seen my Intro to CSS + Cheat Sheet post (find my updated cheat sheet here). Some of this might be a repeat, but I thought it would be a good idea to create a brand new love letter to CSS.

Intro to CSS + Why You Should Use It

What is CSS?

CSS stands for Cascading Style Sheets. It is HTML‘s partner in crime and the best way to style websites, blogs, plugins, etc. When you add CSS codes to your stylesheet, you can override what was previously written. This is where CSS gets the “cascading” part of its name. You don’t necessarily have to go back into your codes and find the one you want to change (unless you want to).

What does CSS look like?

CSS is made of selectors, properties, and values. The selector is the element you are styling. It can be classified as an id, class, paragraph, link or a section of your page (div, span, etc). An id always begins with a hashtag while a class begins with a period. The id selector will style one main area, but the class selector can style several elements within a class.

If I wanted to change the body text of all of my blog entries to Tahoma, my CSS code would look like this: .entry {font-family:tahoma;}. Below is an example of what more loaded CSS codes could look like:

#nav-primary {
margin: 0 auto;
padding: 5px;
width: 1100px;
padding: 5px;
background: #fff;
}

.nav-menu-item {
color: #000;
font-family: georgia;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 2px;
}

As you can see, I’m first styling my navigation bar with an id (#nav-primary), which controls just the menu itself. Then I’m using the class selector (.nav-menu-item) to style each link within the menu. The spacing of your CSS codes isn’t very important. Basically it just adds organization. The most important thing to pay attention to in your coding is the placement of the colons, semi-colons, and brackets.

Why You Should Use CSS

  1. Your website will look and feel cleaner. CSS allows you to quickly add margins and padding to elements, making your design look professional and intentional. Your coding itself will also be more organized. With CSS, you can edit several elements in just one line of code. You don’t have to go into every single post, page, etc in order to change the style of a specific element.
  2. It’s SEO friendly! This means your chances of getting traffic from search results in search engines will be higher. There are several elements of your blog that you can choose to either create in Photoshop or by CSS. I always recommend trying to create blog elements using CSS. For example, suppose you want add a colorful sidebar heading labeled “Design Freebies”. It might be tempting to just create a rectangle in Photoshop, add some text and upload it to your blog. But if you use plain text and customize it with CSS, it’ll be easier for search engines to pick up on it.
  3. It’s fast. This is helpful if you’re like me and change up color schemes often. You can go into your CSS Editor and change the background colors, fonts, hover effects, etc. super quickly. No editing/saving/uploading has to be done.
  4. It’s fun. I know, I know, this is subjective. But I personally could work with CSS codes all day. It’s so fun to experiment with different selectors and attributes and see what beautiful blog elements you can make. Want to make your profile picture rounded? Use CSS. Need to create a pretty drop-down menu with hover effects? CSS. The possibilities are endless and answers to your coding questions are always somewhere out there. I literally googled my way through CSS.

Where to Insert CSS Codes

Most blog platforms come with a special space for you to insert CSS. In WordPress, I always use the Editor section under “Appearance” in my Dashboard. In Blogger,  you can add CSS in the “Advanced” section of the Template Designer.

CSS Cheat Sheet

There are so many different codes you can add to your CSS stylesheet in order to make your blog or website visually appealing. I created this cheat sheet a while ago but recently added a few elements. I also recreated it using CSS (rather than using a Photoshop graphic). Visit this page to see the updated cheat sheet and definitions for each property.

CSS Cheat Sheet via The Blog Market

Enjoy! I hope you all are looking forward to CSS tutorials in the future. Is there anything you’ve always wanted to learn to code? Let me know.

Leave a Comment

HTML Basics for Bloggers

December 9, 2014 by jennifer Leave a Comment

Today I’m going to share a super basic HTML lesson. I figure the best place to start is at the very beginning. HTML and CSS are both necessary coding languages in the blog and design world, but it’s really important to know the difference. For those of you already understand HTML, this may be a snoozefest. Not to worry! I have coding tutorials lined up for days. 🙂

HTML Basics for Bloggers

HTML stands for HyperLink Text Markup Language and is the standard language used to develop web pages. While customizing your blog, you might not end up seeing your HTML very often, but knowing the basics does come in handy when editing specific pages, posts, and widgets on any blog platform.

HTML consists of tags, which are attributes surrounded by angle brackets. All opening brackets must be closed. The left column below shows what the HTML structure generally looks like. To the right, you can see definitions of each main tag.

 <!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>

<!DOCTYPE html> – This shows your browser that you are using HTML5. Helpful info on the DOCTYPE declaration can be found here, but you don’t necessarily have to understand everything about this attribute.
<html> – This begins a series of nested HTML tags that make up your website.
<head> – The “head” tag is where you can place tags such as your title, CSS stylesheet, and mobile view configuration codes.
<body> – The “body” tag consists of your content. Everything here will be visible on your page.

Common attributes for the <body> section:

<a href=”URL”> – Hyperlink
<alt> – Alternative text for when element cannot be displayed
<b> – Bold text
<br> – Single line break
<div> – Section in a document
<img> – Image
<h1>, <h2>, <h3> – Varying levels of headings
<p> – Paragraph
<span> – Groups inline elements (good for adding CSS without creating a paragraph break)
<title> – Controls title on your browser bar

When it comes to blogging, I use HTML in layout widgets and occasionally blog posts. Unless you’re building a website from scratch, your basic HTML structure is probably taken care of. All that’s left to do is fancy it up! I’ll be blogging all about CSS in a few days, which is where the magic happens. For the sneak peak, go explore the new interactive CSS Cheat Sheet. Enjoy!

PS. If you haven’t already signed up for the forums, click here to join the party! Your profile picture is attached to Gravatar, so you can visit the website to change it.

Leave a Comment

  • Newer Posts
  • 1
  • 2
  • 3
  • 4

Recent Posts

  • Easy Ways to Add Greenery to Your Workspace
  • How to use Pinterest board sections to get organized + stay inspired
  • Friday Favorites 05 | Terrazzo Trend
  • Best Creative Planners for 2020
  • 10 Journal Prompts for Creative Motivation

Recent Comments

    © 2018 The Blog Market · · BACK TO THE TOP