Easy way to Design a websiteSimple way to design a website
Create and program your first website in easy to follow easy to follow instructions.
We will design and program our first website in easy to follow footsteps in this workshop. Designed for beginners, this guide hopes it gives you the tool to create your own standards-compliant Web sites! Looking for a fast start, take a look at our website template library to find a professionally reactive options that' re willing to adapt to your next work.
We will design and program this very easy website. It is not spectecular design, but it will be very efficient to teach fundamental encoding technologies. We wrote this tutorial under the assumption that you have never encoded a website before or only did it a few time. We' re making a very easy website here with four main elements: headline, contents, sidebar und footing, the look of the site will be something like this:
It' a good idea for you to lock the design of your own before you begin, either on hard copy or in Photoshop, to rationalize your work flow and organise your work. Well, I will not go into the discussion about monitor resolution and optimum website width here. The only thing you need to know is that the contents of our site will be 700px large, and that this is fine.
The design has a side bar and I chose to make it a third of the page width. We will also change a beautiful backdrop colour for #ebe8e8. We will now apply a small light effect to the head area. Make a cut screen over the layers of cyan, then use a large smooth paintbrush (400px wide) and choose a colour slightly brighter than the cyan one.
It'?s your turn to insert your contents into the doll. I' ve used a bits headers that will be HTTP and the smaller HTTP to html links will be isum. Textstyles: hr2 Head: hr3 Head: I' ve duplicated the message because I' m rotten. You can fill the side bar with some more dolly contents, you can get the free symbols I have used here.
elements of the list: This is what it is for the site design, it is nothing specific, but its ease will make it easy for you to keep track of the remainder of the trial. It is the intention to use as few pictures as possible and to make them as small as possible. Okay, so let's get started on the headers.
In order to do that, we'll snatch a small piece of the headers and have it repeated across the monitor, no matter how broad. So let's go ahead and get a little piece of our headed ball. Make sure to remove the slip from the side of the picture so that you do not get a highlighted one.
Cut the section of the headline between the two guide rails that indicate our width of 800 px. All we need is a few more pictures: the "subscribe" symbols and the join our team button. Okay, so to cut the badge, we can use the same technology as the headers and footers, but this tim we only need the one thin disc.
Well, now that we've split all our pictures, we store them as optimised pegs and put them in a useful place. From the pop-up screen, press and hold down the hot key and click to choose the layers (you can also zoominate here), make sure that the Default drop-down box is at JPEG High, clear the box "Convert to srgb" and click "Save" In the next screen that appears, choose a name and place for your pictures that I'm about to store on the wallpaper.
Ensure that it is configured to "Images Only", "Default Settings" and "Selected Silice Only". Rather than viewing the single photos, you simply find a file called "images" that contains all your photos. A computer gives each picture a number, which is not very useful. Make sure you have the right photos and name them accordingly.
Make sure to fade out all backgrounds, then take out the slip utility again and trim beautiful little squares around each symbol and around the emblem. You should also re-name these image folders, and your image folders should look something like this: All right, that's it, we're done chopping up our PSSD, and we have all the pictures we need.
Make a directory for your website, mine is named "MySite", in this directory you make another directory with the pictures we just cut. Rename this directory "Pictures". When you use a different text processor, the procedure should be similar, but the main thing is the same: you need to build an index. html files, and it must be located in the "MySite" directory along with the images directory.
So, you recall when we said we'd have headers, contents, sidebars, and footers? Let's now take another look at our POSD - let's think about how we want the foot and head discs to be repeated infinitely often to the sides? ere in the middle of the monitor in a certain width.
In order to manage this, we need a large div containing our expansive items and a div containing the primary one. Every one will be included in a large, recalcitrant Div with an indefinite width, and the contents of each div will be packed into single divs that define the width and centring.
Let us use the same rule for the contents of the header and footers, so they will have specified instead of (or in Addition to) certain ID's certain categories, which means that you can build a rule sets to specify all div's with the same category. Thus the contents are packed into a div with the ID "main" and our bottom line into a div with the ID "footer".
Well, now that the layout of our site is fixed, we can begin to add contents from top to bottom. We have our headers at the top, and inside the headers we have 3 key elements: a logotype, a heading and a navigational tool. Let's make a divider for our headers, and to keep things clear, we'll insert the slogan and logotype into their own dividers.
It is common for navigating to place menus within an unsorted order, with each point containing an anchoring day. "Looking at our major contents area, we have 4 different types: a large headline at the top, a smaller headline and an even smaller headline for the headlines of the messages, as well as some paragraph and small data of the messages.
It' s now just a question of inserting your contents, which isn't much of a joke, but it's quite simple. I have added anchoring tag with the value "Read More" at the end of each message. Now go to the side bar. Each of the three side bars is divided into its own part.
Every dividend will contain a headers and an unsorted listing, and every listing element will again contain an anchoring Tag. We want to modify the standard fonts, we want the contents to be 700px broad and centred, and we want to get rid of all those gaps between the items.
Each browser uses defaults for every item for padding and margining, which makes unstylled pages look beautiful, but for us they simply stand in the way of our own style. In order to get away from all these untidy spreads, we will use a very easy cure that is just a general principle that eliminates the standard upholstery and spreads of the items we use.
Let's first clear out the fiddly part: define the wallpapers for theader. We start with the repetitive disc that we took out of the headpiece. Repetitive picture will be inside the "main" Div, which has an indefinite width. Let the webmaster know where the picture is and what to do with it (repeat, don't repeat) to create a wallpaper, we use the option "background" and specify the position of the picture or'url': in our case the picture is in our picture directory, so we specify the location: then we specify that it should be repeated along the x-axis: background: url(images/header_slice. jpg) repeat-x; checkout it out: fantastic, right?
We still miss the highlights on the top of the headers, and since we removed an 80px part of our headers, we can put it into our "container" div. The problem is that we have two of them (one for the major and one for the footer), so we have to specify that we want to place the doc with the category "container" inside the doc with the ID "main" in the same way as before, but this again we have to specify "no-repeat": background: url(images/header. jpg) no-repeat; Take a look: great! The highlight is sitting just where we want it, and blending in to the repeating sides. It' s a good idea to have the same settings as the first one.
We use a picture wallpaper and a non-html typeface with an inner shade. You can' do that in bss, so we have to substitute an illustration for the text. "So why not just put the picture in place of the line?" you might ask.
Now, on the web, the headers is essentially the'name' of your page, and important, high-performance robot (Google) scanning when looking for a keyword for this feature. When you don't have a headers, your site might be named Calamazoo, but it wouldn't appear in a quest for exactly that name.
To fix this issue, we use a sneaky little technology named "Image Replacement" to use the picture we want while retaining the headers in our mark-up. At first we put the picture as wallpaper to the #logo diverse background: url(images/logo. png) no-repeat; when you look at your webpage you will see that our wallpaper has been split in two.
That' s because we didn't leave it any space, we can fix it by specifying the size of the image: Background: url(images/logo. png) no repetition; Height: 84px; Width: 335px; Better, but we still have the initial text in our way, but we can correct it! Instead, let's try to adjust the padding: text indentation: -9999px; pad top: 40/px; let's take a look now, and the fucking thing went back to where it was!
The reason for this is that the marginal attribute shifts the entire item, but the padding shifts only the contents of the item and leaves the backdrop where it is. So if our display was, say, 19999px wider, we'd see our ejected headers moving down 25px, but that's not what we wanted.
So to move the wallpaper of the logos we have to move the divid over it, because the whole wallpaper is the " contents " of the headers divid we try it out: text-indent: -9999px; padding-top: 40/px; Much better! Okay, so what's a floating? Essentially, when you tell an item to hover, it will stick to the side of a page or item and also take it out of the page itself.
Wallpaper: url(images/logo. png) no repetition; height: 84px; width: 335px; float: left; well, as you can see, we were able to move our slogan to the side, but it took the navigational menue with it. I' look at it this way: A regular item (e.g. a div, oder an hr1 headers, or an image), even if it's really small, takes up all the place next to it in an invisible way, like a big long horizontally rod.
If you are floating an item, you take all the additional room to the side and limit it to the room it occupies directly, so that other items can surround it. First of all we have to separate the tagsline into a separate floating point, so that it is outside the regular "flow" of the page: float: to the left; take a look in the web page, and look at this, we made it even harder.
And now the menus enclose our headline! Let's begin by copy the fonts from Photoshop: and then top and bottom adding a little padding: float: links; padding-top: 20-px; padding-left: 20-px; let's see: now we're getting ahead! Now we have to bring our navigational menus into astray.
If you design the fonts of a roster of tie tag, you must specify not only that you are referencing roster members, but also the tie in them. We specify our own disordered listing so that we can work with the others seperately. We' ll adjust the listing controls to move them to the right so that any controls that are next to them stay there. float: left; If you look in your web page, you'll see the same issue we had with the floating controls before: other controls wrap around them.
As before, we can add our Clearance Dive directly after the disordered listing. We should now have all our elements in a row, just clear them out and move the menus down a little. The first point is about half a point to the right of our guideline, so let's change the element to half a point to the south.
Listen style: none; padding-top:55px; float: links; padding-top: 30-px; We need to plan even more room between each element, if we want to take the place in our pad, it's about 105px, but since we already have 30-px cushioning between each element, we only need to put 75-px cushioning to the right of each element. float: links; padding-top: 30-px; padding-top: 75-px; And last but not least, marvel at the padding-top: 30-px; padding-top: 75-px; And last but not least, marvel at the amount of room we have to put between each element:
Go to contents! Here you can see that we have not yet defined a wallpaper colour for the area. Arial, Helvetica, sans-serif; background: All right, now we're willing to put somepadding on it to hide everything. First, the spacing from the bottom of the navigation to the top of the headline is about 25px: Text Size:36px; Color:
4444444444; Top padding: 20/px; Well, the gap from the bottom of the h3 head to the top of the first heel is about 45/px, but if we adjust the top Padding-padding to 40/px, we will also get 40/px between the two heels. We have to divide the padding into top and bottom because the heels are only about twenty px apart, adding twenty px at the bottom of the h3 header and twenty px at the top of the heel: 24 px character height, color:
There' also too much cushioning under the h3 title, so we're going to take a little off. We' ll also have to cut back the cushioning over the heels and put some cushioning between the two messages. padding-top: 100px; padding-bottom: First we need to specify the width for the contents area: width: 610px; now, to bring out the side bar, we will use floating again, moving both the contents area and the side bar to the right.
Width: a510px; float: link; float: link; float: left; When you look into your web page, you will see that our text is wound around the side bar. All right, the next stage is to simply copy the fonts from our side bar psd: fontsize: 24/px; color: 393838; Keep in mind that in order to design the fonts of the link in a disordered listing, we must point to the anchors and not to the listing element itself.
Well, if we look at our past pages again, we will see that the text for the listen elements in the subscriber widget is slightly bigger than in the remainder of the page bar. In order to fix this, we need to aim at the disordered lists, so we need to include an id value to suscribe ul in our markup:
We can then reference it in our css: font-size: eighteen px; now we need to design our sidebar: adding padding, edges, backgrounds and edges. First, let's get the balls off: Listen style: none; OK, so it's still in the bad place, so let's fix it by putting edges at the top and lefts.
Then, by adding the styling to our text style to expand our menu: Fontsize: 25px; Color:
A5px; Fontsize: eighteenpx; Our side bar already looks almost perfectly, all we need to do is include the symbols in the subscription section and styles that connect us. Putting pictures in an unsorted order may seem bewildering, but if you take things one by one, it makes complete sence. We' ll make them wallpapers, so if we use the Padding feature to move our lists a little we won't affect the pictures.
Symbols are about 25px width, so we are adding some Padding to the right of the elements: padding-bottom: Now we need a way to take a look at every single element of the lists, so we will be adding some ID's in the markup: Now, we are going to append wallpapers to each element of the list: background: url(images/rss_icon. png) no-repeat; background: url(images/email_icon. png) no-repeat; background: url(images/twitter_icon.
At this point it crossed my mind that maybe eighteen px was a little too big for the link here, so I cut it down to a less drastic sixteen px, which enabled me to put a little more cushioning on the side bar on the front without expanding the sideline. 4px; padding-left: 55px; Our little side rail is almost completely made!
Let's just correct the text styling and include our repetitive background: color: #393838; text decoration: none; background: url(images/button_slice. jpg) repeat-x; as you can see, our wallpaper is there, but it only comes right behind the text, we have to give it room to expand. First we give him an edge to bring him to the middle of the side rail: and some cushioning on each side so that our knob expands:
It is a quick way to review the cushioning characteristics and is completely tolerable and even recommended as it will save room. The key looks great, but oops! It is shifted to the right side along fragments of fragments so let's cut our margins a little to compensate:
Now, we simply give it some room underneath by appending the whole side bar div: float: left; marginal-left: 55px; margin-top: 35px; reason: 1x soli #BEBDBDD; padding: Fifteen px fifteen px fifteen px thirty px fifteen px; here again is this stenographic property: it goes in this order: up, down, right, left, up. 1x sound #c7c7c7c7c7c7; And there we have it, a sideline!
We place the bottom line the same way we place the top line: Use a repetitive slip within a width that is not specified and then insert the contents within a width that is centered with width. Let us begin with the repetitive slice: background: url(images/footer_slice. jpg) repeat-x; it's a beginning, but it's really small. Let's put some Padding in and make the text white: background: url(images/footer_slice. jpg) repeat-x; padding-top: 20-px; padding-bottom:60px; margin-top: 40/px; color:
I would like some more cushioning over the top contents and the side bar, for example. I' ve also chosen to keep the menus to the right, so I will take off the cushions to the right. The elements are now nearer to each other because we had cushioning of seventy-five on the right and thirty-five on the left, making a 105.
After removing the pillow on the right we have to put it to the right to compensate for the difference: float: links; padding-right: 105px; width: 95px; #And the grand final: So next.... wait? what? we're done? Now, validating is a vital stage in website design, I won't go into the infinite causes here because this essay does it for me.
Ah, but if only it were that simple. These are just a few problems: We should have defined the width for all our floating elements. Cleanup: Our slogan, menu-driven listing elements and the side bar must all be labeled with Width. Well, we can only give a general idea, it's about four hundred px width. float: links; padding-top: twenty px; padding-left: twenty px; width: four hundred px; And reload: no exchange, excellent. Yeah.
Next the menus of the lists. That's a little trickier: Our page is 1800px width, that's the maximal overall width of all elements together. Dividing through the four elements of the table and setting the width to 1200px will swap the elements and display them upright.
The reason for this is that we have a filling on both sides of each item in the list: Thirty px on the leftside and seventy five px on the right.
And the rest on our side of our box of eight is two hundred and ninety, but first we have to take off all the cushioning on the right and left: two hundred and thirty = two hundred and sixty. The next step is deduct the edge on the far right and we are with 205px remaining. A last problem: our limit of 1x, so we deduct 2x and adjust the width of the side bar to 203x.
There you have it, a very easy, well encoded website. While doing this Tutorial, I sincerely hopes that you have acquired some invaluable skill to put into your own design and are now prepared to start programming your own websites. Expand your web design knowledge or work with one of our ready-to-use website layouts that react quickly and can be adapted to your specifics.