PSD to HTML 3.14) Setting Up the Footer
Previous: PSD to HTML 3.13) Styling the Captions
Transcription of PSD to HTML 3.14) Setting Up the Footer
hello and welcome back to the PSD to HTML responsive portfolio
built thislesson
we’re gonna move on with the footer footer is another section that has
a background that extends all the way to the edges and content that still fits
within the width of the rest of our content so again we have two levels of content
here and if we jump into HTML we can see that we’ve created it that way if
we jump down to our footer section here just inside her foot or we have a deal
with the class of container so the fire itself will extend all the way to the
edges the container will container content and keep it at the same width as the
rest of our content so it seems to the footer itself first will come down below
the portfolio section but just above the clear pics section will create a
new section here for the father and we’re working in the site 18 folder for this
particular lesson so its creator rule for the filter element we’re going to
first of all give it a dark grey background color with a value of 25 25 25
and in order for that to work rate we need to lighten up your text so we’re gonna
give our text you later Greek color of 1999 deep then I want to go out and
play a little bit of padding to the inside of the footer mainly to the top and
bottom so let’s add some padding here for the top organist that 220 pixels
so that there’s a little bit of space between the top of the footer in the
text that appears at the top for our left and right it’s going to be easier so
for the right value which would be the next when we gonna set that 20 for
the bottom that you aren’t quite a bit of space at the bottom three asset that
260 pixels and then for the less valuable said that 20 as well and it looks
will save that go back into her browser and refresh your page and they’re
going now our daughter is there a color so next we have these h3 tags here
for the from the blood contact us and register for updates and as we can see
in a Photoshop file there’s gonna be that seemed like red color almost pink and
in again those contained in h3 tags so in our CSS we’re going to point to the
h3 tags within the voters so far her space age three and we can scroll up to the
top again and grab that read text color we created a peer copy it and then come
back down to the footer section and said her color equal to that valuable space
it right there so that’s for each three tanks I’m also going to set the font
size here 230 pixels so the fun way to normal does remember this is a book he
text if you set it to Boldin that’s not what we’re looking for and then for the
footer I’m sorry for the E Street Egham also going to set the top bottom margins
210 pixels will say 10 pixel spaces 0 save that refresh your page and now
are heading this look a little bit closer to what we’re going for so now let’s
jump back into reached email take a look at our columns right now everything
stacked on top of each other but each one of these dudes here has a class
I’m sorry it starts here have a class of call one-third its column that takes
up one-third of the with so we have therefore them from the blog section
the contact us and the register for updates so let’s go ahead and target that one
third column there will skip a couple lines here and point to the doc call
hyphen one hyphen third class and for that class we’re gonna center with 233
percent which is about one-third of the width of the containing area and we’re
going to set those columns to float to the left will save that in refresh
your browser and now we have our three columns but we’re seeing the same problem
that we had before where the background color is collapsing so in order
to keep that from happening we just need to give a class of clear fix to
the parent of the floating items the floating items are these deals with a class
of call one-third so we jump back into our HTML use that class of Colin third
we just need to give its parent element which is this David the class of container
we need to give that also second class of clear fix will see that refresh
and now we’re getting a little bit closer but we’re not quite there because
we see that our background now extends down to the bottom the problem though
is our content is no longer centered well since that’s not working like
we wanted to change something in the way that this is working so I’m going
to jump back into text me and instead of giving this a class of clear fix
I’m gonna show you another trick for achieving kind of the same result what we’re
gonna do it comes to the end of this particular did this container so after
all three columns we have our closing contained herein just before closing
container div I’m gonna create another did and for that I’m gonna set the
style to clear colon both and then we’ll put a closing diff tech right after
that and that should achieve the same result again we’re putting that just
inside the closing container div will save that go back into chrome and refresh
and that gets us where we want to be her columns are still lined up in the
center and we’ve got our background and
color moving all the way down to the bottom so now that we’ve got that out of the
way we’ll move on to the next video where we’ll continue styling or footers thank
you for watching and I’ll see you then
PSD to HTML 3.14) Setting Up the Footer
Reviewed by Tayyab Saqlain Zakki
on
23:56
Rating:
Reviewed by Tayyab Saqlain Zakki
on
23:56
Rating:

No comments: