Choosing Media Breakpoints

One thing that has been nagging me in the back of my head and prevented me from moving forward is that I wasn't sure of the layouts I wanted to get for different media devices. I didn't know how many breakpoints I wanted, or where those breakpoints would be best situated.

Sure I've read of some in articles, they mostly reference the iPad and iPhone, and well, I'm kinda anti-Apple... So I didn't want to base myself on them but rather on actual resolutions.

So I took the time to look through my google analytics for my blog and see what people are viewing my webpage on. In my mind, I saw a total of 12 different possible breakpoints from all the data I analysed. Yes, that is a lot!! And I cannot create all of them, or well not all of them right away. I don't know if they will all even be necessary in the end, it will depend on where I go with the first ones. My goal might be to one day have the blog optimized for all those breakpoints (which seperates landscape and portrait in some cases).

I've read many an article saying to start responsive design at 320 and work your way up. Well, I don't have a smartphone, I cannot design for it right away, right off the bat. And besides, it's not the biggest chunk of my pageviews. It's still much more logical to start at a normal size screen. What is normal size? Well, it would seem between 1280 and 1439 px wide. Which is my work laptop. I'll make everything responsive so it'll pretty much fit any screen without a scroll bar in sight.

Then I'll go to smartphones, below 320, or maybe below 480 to start with, then redefine those later...

Then it'll be optimized for the iPad in portrait mode, or portrait below 1000, and above 480.

Then for big screen larger than 1920.

Then we'll see. Ideally these are all the breakpoints I could imagine myself doing (in size order):
1) <300 both landscape and portrait(cuz these are almost squares), but there are very few it would mostly be for older phones 2) >301 <479 portrait 3) >480 <599 portrait 4) >301 < 601 landscape (could be divided into 2 if I'd really want to, this would be the very last resort though) 5) >600 < 1000 portrait (tablets' most popular resolution) 6) >600 <1023 landscape 7) >1001 portrait (maximum size for portrait)
8) >1024 <1279 9) >1280 <1439 (most popular resolution and default one) 10) >1440 <1919 11) >1920

So yes, lots of work ahead of me!! If I choose it. I just really needed to know the grand plan to be able to devise how I want my header to rearrange, because it's gonna be the most complicated part to code I think. I've got such grand plans indeed for it! But the more I read, the more I realise not quite everything is possible here. Especially if I want it to be responsive. It would be easier if I just wanted it adaptative (pretty much fixed size but changes layout on breakpoints). I don't want to start working on the header layout just to realize something is not possible for the smallest viewport and have to recode everything.

It will be epic!

TBC...
Continue Reading...

Translucent Backgrounds and Round Corners

One of the rules defined in CSS3 is opacity of background images. The moment I read that I knew I'd be taking advantage of that feature to do something I had in my head.

I wanted to make my outer-wrapper container translucent, so that it frames the entire blog but still shows a bit of the beautiful background I've got going on. So I set the color to white and then added the little bit of code for opacity. Easy peasy! Right?!



Wrong! Turns out, this affects everything inside the container. All the text all the images are now also transclucent. Not what I was going for!! So after a bit of digging, it turns out the best (only?) way to do this is to create a transclucent png image and use that as a background image.

So I just created a small wide transclucent white image to use.

I used the same CSS code as for my body background. Size 100%, fixed, repeat y, and voila, that's what I wanted!



Yet, I don't know if it looks all that right. I'm leaving it for now, we'll see how it works as I add graphic elements like the header graphics etc.

Ok, one more thing here, I'm adding round corners to my containers. I just really don't like how square corners look, here or in real life. When I do wood projects, I pretty much always sand down the corners and edges so they aren't perfectly square.

Following this tutorial: Rounded corners using CSS without Images.

Of course things are never that easy. I should have seen this coming. Rounded corners are a property set to borders, which means I needed to add a border, which I don't necessarily want. So fine ok I set it to white, the same color as the background, it won't show.

But then I forgot that adding a border to a container contributes to it's width, and since I already took up all the available width as I mentioned in my last post, so the sidebar fell off below the main post area. Easy enough fix, remove 1% from one of the widths. Now I just hope it doesn't break at a small screen size.

Continue Reading...

Responsive Design: Setting the Widths, and Background Color

So I was gonna do a post to say I needed to add a background color (white) to the parts with writing: post, sidebar header, then as soon as I did that I realized I needed to play with the margins and paddings, which need to be in % if I'm to do a responsive design, so what the heck I'm gonna start the responsive design thing right now with the width of the containers. Good place and time as any to start.

So yes after a couple of lines of code to make the backgrounds white to be able to read properly, I get this:



And then with some adjustments to the width and padding of the main containers (header, outer-wrapper, main and sidebar), I get this:



And it's already responsive!! I've also been coding my images inside my posts to be responsive for the long run. They are set at width 95% so they take up as much space as possible.

So here are the dets for the containers. As of right now, my outer wrapper is set to width 80%, my header width 96% with 2% paddings on each side (so total 100%), my main post area is 65% with 3% paddings on both sides and 1% margin on the right (for space between it and sidebar) (so total is 72%) and my sidebar is 21% with 3% paddings on each side and a 1% margin to the left (total 28%). Yes, I played around a lot with those #s to get what I wanted, and it might still change as I add the graphic elements and other features.

The thing to remember when you are setting these widths is that the % is based on the size of the PARENT container. outer-wrapper is inside the body (which is the entire window), header main and sidebar are inside outer-wrapper. Setting the widths of the header is easy because it takes up the entire width of the outer wrapper, but main and sidebar share the width, so their total width needs to fit inside the outer-wrapper. It's really quite easy once you get that concept down. And also remember that paddings and margins need to be counted towards the width. If it equals more than 100%, it won't look right. It won't be cut off but it won't look right.

If you're not sure what the difference between margin and padding is, check out this article from Blogger Buster. But quickly, margin is the space outside the container, and padding is the space inside the container.

You can try out the responsiveness by resizing the browser. Everything should adjust and fit as the screen gets smaller or bigger. Of course this is just the beginning for responsive design, the very base. I'll be adding media queries so that the layout changes as you get smaller, to better suit tablets and smartphones. I'm so excited for that!!
Continue Reading...

Setting the Body Background Image

The background image, or graphic, was one of the first graphic elements I made for the new design. I knew I wanted I pattern, and for it to be predominantly white, yet still quite colorful.

I'd found this graphic designer, Delicious Scraps, and I loved her stuff because you could use them to create your own graphics with them using your own color scheme. Perfect! Exactly what I needed since I hadn't yet found a scrapbook kit with a color scheme I liked and elements I was longing for. And I can pretty much guarantee no one else will have the same background as me!

So, first order of business: make the background image. Oh wait, back track a second. First order of business: choose a color theme!! Ha! Ok, well since I've already started with this post, I will cover how I chose my color scheme in an upcoming post, that sound good?

Ok, second order of business: make the background image. I looked through all the free pattern templates at Delicious Scraps and chose the one I liked best. This one to be precise:


Curtesy of Delicious Scraps

I wanted each layer of circle flowers to be a different color (the solid vs the paller one), and the dots an other. They all come in different files when you download the template. But I could not figure out intuitively how to do it in Photoshop! I thought I'd be able to do it with the overlay property, but it did not give me what I wanted at all!!

So I turned to all mighty Google, but I wasn't sure exactly how to phrase what I wanted to do. My first couple of searches came out fruitless, and I was almost ready to give up when I came upon this tutorial (for digital scrapbooking). I almost discard it because there were no pictures and it was using a different version of photoshop than me, but I figured I'd better try, and it worked!! Exactly what I wanted!!

I was now able to color every layer a different color, and because they had a transparent background, I could easily put them one on top of the other. Hooray, background graphic: Check!

With the background image in hand, I had to figure out how I wanted to place it. Here's a good tutorial to know your choices: How To Use a Background Image for Your Blog .

I wanted my background image to be scalable, proportional to the width of the window of the browser, since I'm going for a responsive design. I don't know if I'm making sense... I knew from my past (current?) background image that it looks slightly different for every device/resolution seeing my blog; it's set to background fixed and no-repeat. Someone with a big screen/resolution (Desktop computer) would see quite a bit of the colored part of the background (right, below) and that's the way I intended it to look like when I designed it; whereas someone on a smaller screen/resolution like a 15" laptop (my work laptop; middle, below) would have the background cut off where the lacey borders are and barely see the rest of the colorful background. And who knows what someone on a tablet or phone would see, probably not much if it follows the trend. (Note to self, check on bf's tablet and iPhone)

Click to enlarge in LighBox

The point is, I don't want the flowers to look huge in the background of a smartphone. Which is what I think it would do if I code it the same way as I've previously coded it. I also needed to figure out the biggest size of monitor it would be seen on. If I didn't make the image wide enough for the biggest screen, then there would be white space somewhere to compensate.

With that in mind, I thought my best bet would be to make the background image itself responsive, but was it possible? Apparently, with the new CSS3 rules, it is! Check it: CSS3 backgrounds. It would still mean that anyone with an older browser would not see it properly, but I think the majority update their browsers, right?

So here we go. Try 1, I set background image to fixed, no-repeat and a width of 100%. BTW, the image I made is 2000 px by 1000 px. And I always prefer fixed, I don't like it when it scrolls, I find it too distracting, especially when it's a busy pattern.


Please don't mind that the text is unreadable now. I'm fixing it after, and it's quite easy: just color the background of the main sidebar and header containers white.

Problem numero uno: If you're on a widescreen viewing the blog, the background isn't tall enough to cover the whole height of the screen! Which means the background image needs to be higher than it is wide for widescreens in landscape mode. But, thinking ahead, for portrait mode, then I would need it to be wayyyyyyy higher than wide, which would make for a huge file. There's gotta be an other way. (If you see how to fix it at this point, unlike I did, you can skip to the end ;) )

Try #2: Let's just see what it would look like without specifying the width 100%. (I'm really kicking myself for not thinking of the right fix!!)



Ok, well it fixes the above problem (I think, can't check on more devices...), but I don't like the size of the flowers, I really liked them smaller. And anyway I really want it responsive. Even if I were to adjust the image to have a higher density of flowers, it wouldn't scale.

At this point, I had to leave it be cuz I had other things to do. And then it came to me while I was taking a shower. It was so simple really, why hadn't I thought of it before?

Try #3: background width to 100%, fixed, repeat-y!!!! Duh! If it's not high enough, just repeat the pattern vertically, as long as it is a (seamless) pattern, it won't even show.

And with that, TADA:



Perfect! Actually, I might edit down the background image to the minimum repeating pattern, yet still keep the same width (might also make it less wide, and therefore the flowers slightly larger). That way, the file size of the background image will be smaller, and it should lead quicker. The background image and header image are the biggest graphics of my current blog, and what slows it down a lot right now.

One of my objectives with this design was to minimize the loading times by optimizing the images (not make them too big), and using more CSS to do what I want to do. Which is what my next task will be: make a white background for the containers containing text so they are easier to read. That or/and make the container sizes responsive. Should be easier enough.

Ha! Cuz adding the background was so easy, right?!

TBC...
Continue Reading...

Ready Set Start! aka Removing Attribution

Alright, I've finished indexing (indenting?) the basic blogger template. It was Loooooong! Made me think of the wax on wax off exercise, lol. It was fun at first, but it got really repetitive. It made me realize just how many little widgets and links and such goes into a blogger template! I'm glad I'm not starting from scratch.

But it almost feels like it when this test blog looks like this after loading that template:



Complete blank slate!! And no nonsense in the template that I can't make sense of!

So I've noticed a few things in the Layout Mode:



The Navbar and Attribution are in the Sidebar... And I can't move them?



Will need to fix that. I remember seeing a tutorial for removing the attribution on Help Logger, so I'll do that first, it'll be done.



Step 1 of 83475983476958: Done!

I'll label this post footer-tweak because I think the attribution is most often there. Or should I label it widget-tweak, it is a widget after all. I'd like to clearly label all posts from the beginning so I don't need to go back in time and for anyone to be able to find what they want to know. We'll see how that works out.

I'll be working on background next, or maybe making widths responsive, or both. We will see!
Continue Reading...

Gotta Start Somewhere... Or Not

Yesterday, I was finally feeling tired of reading, and reading and reading instead of actually DOING, so I decided it would be the day that I would actually make a change to my base template. There's only so much you can read before you have to actually START.

So you're expecting something to have changed on the template, right? Well, trying to change SOMETHING (I decided to go easy and just add my background) highlighted some challenges that I did not foresee because I hadn't actually LOOKED at my template yet.

I THOUGHT I understood the skeleton of blogger, but then I looked at the head tag, where all the CSS is to add my background code, and I didn't understand a lot of things. Like wtf is .body-fauxcolumn-outer?? (and there where other other like .cap and whatnot) Nowhere in all my basic blogger template reading did I see anything mentioning that tag (or is it class?)!

I thought it might be just the template I was using (The Simple tempalte) so I change to the Ethereal template. Well, the same code was there, so I think it might be just a think with the preset blogger templates.

At this point I remembered reading in one of the articles/series that someone was sharing a very basic blogger template as a starting point. Now in WHICH article was it?? I've been reading blog template stuff on 3 computers, so it's not like I could just go back through my history. I'm pretty good at remembering things based on what the page looked like, so I knew if I could just find the webpage that I pictured in my mind, all would be good.

I'm also trying really hard to save all the articles I'm reading for future reference, either here like I started doing in my first research posts, or organized in my OneNote (but sometimes I have a hard time finding it bc I try to over organize my pages in there).

Needless to say I couldn't figure out which article it was. Well, I knew the articles I was refinding were not it, I knew which one I was looking for but where had I looked at it?? And I was pretty sure I had not yet closed the tab. I finally found it last night. It was on my netbook, the one I use the least often. Good thing I decided to do some bedtime blog reading, or else I still wouldn't have found it! And don't worry I've saved the article now.

So, here's a list of the articles and series that have helped me most understand the anatomy of the blogger template, which is quite different from other templates from what I understand.

1. From Blogger Guide starting with Understanding Blogger Template. There's just a couple of posts after this one also that really help.

2. At Theme Forest, there's this article from Amanda of Blogger Buster as a guide for web designers. This is where I found the basic template (in the middle of the article, you can download the template). It's really quite comprehensive and has great info about widgets and such.

3. This series at Our Blog Template is also very good and clear.

I must have read others, but those were the most helpful to get started and feel a little more confident once I open the blogger template (and also the ones I managed to save). They don't discuss as much WHAT to change, but more making sure you understand the anatomy and know where to put what and what not to touch.

Also, reading many articles, from different authors, really helps because everyone has a different way of explaining. What might click with one article might not click in your mind from an other article. Also, repeat exposure helps.

Even after all that reading, I was still stuck not understanding my template. So I downloaded the one from Amanda at Theme Forrest (#2 above). When I opened it in Notepad, it was all a wide and hard to scroll though document, so I started making Enters and Tabs to be able to read it better.

I found this a wonderful exercise. Especially for the body section with all the div tags and b: tags. That's where I am now. Trying to keep the hiaerchy of it all, seeing what goes inside what and indenting properly. Helps to understand the containers to know what I will need to modify later, and how. I'm probably going to go back and read some more after. I'm realizing now that as much as I thought I understood from just reading, I didn't, and hands on playing with the template is what really makes it stick. And then probably when I re read I'll understand even better, and it'll stick and stay in my mind even better!

TBC...
Continue Reading...