PSD to HTML 3.15) Styling the Footer Content
Previous: PSD to HTML 3.14) Setting Up the Footer
Transcription of PSD to HTML 3.15) Styling the Footer Content
hello and welcome back to the PSD to HTML responsive
portfolio build in thislesson
we’re going to continue with her father and we’re going to style her list over
here on the left which is a description list and it’s made up of a series
of payers of didi and BTW tags that ed tags we can see here is going to be
a little bit bolder in the DT’s gonna have a smaller italic text so let’s jump into
our HTML and see what that looks like here we have our first column inside
her father we have in each three and then we have this description list with
a class of voter lists and inside that folder list we have RDT tags which have
which would basically be equivalent to a blog article title and then the DDT which
would be the date that the blog was written so let’s target this further list
and get this look rates will jump into our CSS come down to the bottom of her
footer section skip a couple lines and we’ll start with r for her hyphen list
class notes point to the DET elements inside that further list and over
gonna do here is that the fun wait to board then we’re going to point to the
DDA elements will point to further listing in space didi and for these were gonna
set the margin left 20 because right now again if we look at it in our browser
when we get there the
DVD elements here are by default nudged
over to the right so we’re going to get rid of that left margin and set it
to 0 then I want to put a little bit of space between that date and the next blog
title so we’re gonna set a bottom margin here we’ll set margin bottom 220 pixels
say that refresh the page and there goes a little bit better secondly
also an asset that fun style for those DDL and Sandra said that to italic
so you can refresh and it looks pretty good so we’ve got our first column
down first second column which is inside an address element
which is located here we’re going to add a new rule for that will skip
a couple lines and 1.2 further states address here we’re gonna set font style
to normal because as we can see it’s currently set to italic so refreshed
that it’s normal mouse let’s make our Intertek within that address a little
more visible 12 footers base address space age to target those anchor tags
and we’re gonna set the color to Alegre pounds 90 1990 the same color we use
for the rest of our texts that are and we’ll send her text decoration to none
but we will make it stand out a little bit by setting the font style for those
anchor tags to italic will see that refresh and it looks pretty good then
I want to give it an underlying for when we hover over it so it’s clear that we
can click on it so awkward another rule four-footer address a hoops year ago
a colon hovered near Regina said text decoration to underline so now when we
refresh it and however over that text we can see the underlying there very
good so now let’s move on to the registration section we have to input fields
and a subscribe button in weekend again see what that looks like in Photoshop
so let’s let’s make that happen in CSS now so we’ll jump back into
text me and we’ll get started there so we’ll skip a couple lines and we’re gonna
point inside the folder and if we go back to HTML the we have a forum here and
I want to style the inputs here but just in case we ever decide to put some other
kind of former inputs in the footer and I want to just target for her space
input instead let’s go ahead and add another class to this particular div and
we’ll call it registration will save that jump over to our CSS and then inside
the folder we’re gonna points to that registration class input into the inputs
contained therein so
gonna set the width of these inputs returned the text fields themselves to 100%
of it take up the full width of the containing column gonna set the display to
block so that they appear on their own line will set the background color for
these two agree value of 36 36 36 and we’re gonna put a lighter green border
around it’s all set our border equal to 1 pixel solid and then we use available
6066 deed for that border color in the dark text color inside this these
text fields is gonna be 60 60 60 which is the same as the border color and
then we’ll put a little bit of padding inside these text fields little bit
of margin on the bottom so that we can space them apart so well said margin bonham
210 pixels as well and
then we’ll set our fun size in for the text inside those inputs to 18 pixels
so save go back into crewmen refresher page and that gets us kind of we
want but if you look really closely you can see that the right edge of these text
fields stands out a little bit beyond the right edge of the rest of our content
and that is because of the padding wheat added to these so not only is
it a hundred percent wide it’s a hundred percent wide plus whatever padding
we added so in order to fix that will do just what we’ve done before by changing
the box sizing property to a value of border hyphen box say that and
refresh and they’re getting together with closer to where we want it so now it’s
trial or subscribe button and we look in our Photoshop file we can see it’s
just a large red button with white text so will jump back into our CSS and creating
a new rule excuse me for that but so will point to further face . registration
which is the second class we need to that column and inside that column
we want to point to the button element is we use the button element to create
that so we’re gonna give it a background color of that same bright red we’ve
been using so go all the way to the top and copy that come back down to the
bottom and pasted they’re so get a background color for that button in place
will set our border to none and want a border on the button and we’ll set
or text color to white then I want to change the font with sitter fun family
to the fund and we’ve been using for our h1 h2 h3 tags which is this how egregious
and so was just highlight that entire fun family rule their copy it come
back down to the bottom and we’ll just peaced over what we’ve already typed
so we’ve got that there and then I want to change the font size bring it up a
little bit 220 pixels and let’s see how it works refresh
and it’s a good start we need to put some padding in there and change the web
for spring the with all the way up to 100% and we know that if we had padding
its gonna make the with even wider so let’s go ahead and change our buck
seizing property to border heightened box to nip that in the bud and
then we’ll add some padding here may be about 10 pixels to the inside of that button
and then we’ll also add some margin bottom to the button as well margin
but there’s nothing below it so we can leave that alone and just see what
that was like save it refresh your page and there we go much better so now you
click on that it takes us back to the top because we just gave it in a href
of pound but but we see that that’s working now so finally the last thing I want
to do is I want to style are copyright here and if we look at our Photoshop
file we can see that it’s getting darker color background and it’s small
it’s centered and and that should should be pretty easy to do Sol jumped back
into text me and
down here at the bottom we put our copyright section inside a nurse forcefully
put it outside the container so it’s gonna spend the whole width of the
browser but we’re going to center the Texas make it look like its spanning the
entire with except for the background color so it’s inside a span with
the class of copyright and it’s inside the folder so let’s go back to say
that CSS 4.2 footers face and then the class of copyright so . copyright and
will set the width here to 100% and you can’t set the width of an inline element
in a span is an inline elements we need to change it to a block element by
setting it’s displayed a book then we’re gonna set the background color to black
will set their text color to a value of pound 555 and then we’ll set the
Text online to center gonna put a little bit of padding inside that just to
the top and bottom in sure we can put it everywhere doesn’t matter was just going
to get on the top and bottom tho 20 pixels top bottom and then 2:04 left and
right same
that refresh your page oops that’s the wrong window theory go refresher page
and that’s a little bit better except we want this to be pulled all the way
down to the bottom of the browser window so the way we’re gonna do that is we’re
gonna set its position this copyright section the span we’re gonna send
its position to absolute and then said its bottom coordinate 20 save that and
refresh and we need to go to the right window there refresh
and that brings it down to the bottom but it seems to have disappeared actually
impose a way up here what
we need to do to fix that is to say its parent element to relative positioning
so let’s go back into text me and the parent of that copyright element
is the element so we’re gonna give the footer and we have the rule for the
footer up here just under the beginning of that footer section we’re going
to set the position of it to relative when we do that refresher
page we can see that it pulls it down where it needs to be and we’re done
so that takes care of the full-size styling for our site only need to do now is
change it so that when we resizer browser by bringing in the with it will basically
resize and reorder the content within it based on the designs that we have
to thank you for watching and we’ll get started with that in the next video
PSD to HTML 3.15) Styling the Footer Content
Reviewed by Tayyab Saqlain Zakki
on
23:59
Rating:
Reviewed by Tayyab Saqlain Zakki
on
23:59
Rating:

No comments: