PSD to HTML 3.6) Arranging the Social Media Icons
Transcription of PSD to HTML 3.6) Arranging the Social Media Icons
hello and welcome back to the PSD to HTML responsive portfolio build in thislesson we’re gonna move on and finish up our social media icons here before we get started we can see that there’s a little bit of space above our social media icons they’re not up against the top of the snack bar instead they’re down closer to the bottom if you’re wondering why that is you can always go into Chrome’s developer tools and try to figure it out so it seems that we wanted to explore that a little bit something right click on one of these icons and click on inspect element so as we have over the element and the surrounding elements here at the bottom in her web developer tools we can see them highlighted appear at the top so as we hover over the image we don’t see anything in the images self thats causing it to lunch down like that if we come up to the anchor tank surrounding it and click on it there’s nothing there either so will go up to the list item still with the list item we don’t see anything that’s forcing them down so go to the unordered list still we don’t see anything well if we go to the unordered list for the Annapolis we can see this green rectangle going across the top of the screen and it looks like those icons are right at the bottom of that green rectangle is that green rectangle that is the padding for this nablus and we can come over here to our styles and take a look at some of the stars that are being applied to the novelist so if we come up to the top we can see it has a padding topic 10 pixels apply to it and using krone’s tools we can uncheck that padding top and when we do that you’ll see that our icons are my back up so you might be wondering why that padding is stretching all the way across the background they are all the way across the navbar if our elements here only come to rate here not even halfway across the screen well and unordered list by the fault is a block-level element and a block-level element by default will stretch the entire width of its containing element when come down here inside our styles and look at some of the styles there we can even look at the padding then we can see as we hover over the padding area that that’s the green area that’s where we’re seeing that green bar to have over the center area that gives us a blue color outside the padding and some border which is this yellow color inner margins are kind of a darker various medium dark orange color but that padding is what’s causing the problems so we need to make sure that that padding doesn’t extend all the way across that nap bar so there’s a couple ways we can do that and I’m gonna go into our CSS and HTML files here and here we can see some of the rules for Arnav list and here’s where we’ve set the top padding for that nebulous 210 pixels another thing I want to do we’ve already set the socialist afloat right let’s set up the list to float left and let’s see if that changes anything we’ll save that thing first of all into the site 11th orders all the changes we make in this lesson will be safe there so it seemed that jump back into a browser and refresh and we see that that gets rid of the top padding problem so then we can go into the social list and give it a padding top of not quite 10 pixels because these are taller than the text these icons are a little bit taller so instead for the socialist I’m actually gonna use a margin top instead of a padding top and either one would probably get you the right results but let’s use margin here saying that and will jump back into chrome and refresh and there we go items down exactly where we want them soon either vertically centered on that now are so now I want to space these icons apart a little bit and I’m in a space those using left margin some reason left margins instead of right margins this if we use right margins and it would not sure all of these over to the left including the Facebook icon and we want to make sure that that Facebook icon is right aligned with the rest of our content so we’re gonna do a margin left back into our text me here and we’ll find the list items for our social list and we haven’t created a rule for that yet so it’s come down here to the bottom skip a couple lines and will create a new rule for social hi finalists face Li so all of the list items within that an order this with a class of socialist we’re gonna give them all a margin left property and set that equal 220 pixels so to say that refresher peach and they r ago never speech down a little bit and that looks much better so now that we’ve got our social media icon spaced out we’ve got our nav list in place we can move on to the next video where we’ll get started on some of the rest of our content so thank you for watching and I’ll see you in the next video
PSD to HTML 3.6) Arranging the Social Media Icons
Reviewed by Tayyab Saqlain Zakki
on
23:50
Rating:
Reviewed by Tayyab Saqlain Zakki
on
23:50
Rating:

No comments: