February 14, 201115 yr Hello all, Wondering if you could help. Ive just designed a test web page on inkscape (attached), but now I dont have a clue what comes next - yep, i really am a complete beginner! How do I upload it so that it can be part of a website? I have Komodo edit but I dont have a clue how to use it. What do I do now that I have the graphics sorted? Do i have to write the code for the graphics? Or do I just upload the whole page as a picture? And how do I make the text I added on the Nav Bar become links? Please help, Im super confused with it all All I have at the moment is a design and now Ive hit a wall. So clueless!
February 15, 201115 yr Do you have any books you can follow along with to code up your design? Eventually you would want to move to a better graphics editor like Adobe Photoshop or Fireworks but as for now while you are just trying out what you have is just fine. Every site starts with these basics <html> <head> </head> <body> </body> </html> The ones with the / means you are closing the tags. So you always start with the document by opening <html> In the <head> you put your <title>This would be the title of the page</title> You also add the CSS link in the <head> which would be a link like this <link rel="stylesheet" type="text/css" href="mystyle.css" /> Inside of the <body> tags this is where all your code goes that will be outputted in the site. What you will want to do is break your site up into sections. So the first thing on your site is the navigation. So now what you will do is make a div for your navigation. <div id="navigation"></div> Or <div class="navigation"></div> (You can use class's and id's, class's you can use as many times as you want and id's you can only use once in a page.) Second would come your header so you would then do <div id="header"></div> Followed by <div id="content"></div> And then what you would want to do is style your divs. This is where the CSS comes into it. If you make a new file called mystyle.css and then in it you put #navigation { background-color: green; color: white; } The #navigation is the name we gave it in the HTML. (# means it is an id, you use a . for a class) So for a class it will be .navigation { background-color: green; color: white; } So now we got the basics done, lets put it all together <html> <head> <link rel="stylesheet" type="text/css" href="mystyle.css" /> <title>This would be the title of the page</title> </head> <body> <div id="navigation"> </div> <div id="header"> </div> <div id="content"> </div> </body> </html> And then in the CSS file put #navigation { background-color: green; color: white; width: 100%; } #header { width: 100% text-align: center; } #content { width: 100%; border-style:solid; border-width:1px; } It's all pretty self explanatory what all the values of that CSS does. So now inside of the <div id="navigation"> </div> You would put your links so that code would become <div id="navigation"> <a href="index.html">Home</a> </div> A link is always an <a> tag so you do <a and then href attribute which is the name of the file you want to send the user too. Homepage is generally always index.html Then you close the tag and the home is the description of what the link what it will look like on the page. You then have to close your </a> tag like you do with everything in HTML. As an assignment try and right a link for your tutorials link. This is just something to get you started and I hope it helps. I would definitely recommend going through w3schools CSS and HTML w3Schools CSS Link w3Schools HTML Link And if anyone comes to comment to criticise my teaching, don't bother I'm only trying to help and I'm not naturally a teacher.
February 15, 201115 yr Follow J's advice and have a good work through the tutorials at w3schools. If you jump in with a basic understanding you'll sink. Good luck.
February 15, 201115 yr This gave me a foot up... helps you learn html & css and create a basic site with it
February 15, 201115 yr Author j05hr Thank you for the effort and time you put into replying to my topic! Some of what you said sounds familiar (Im reading the "teach yourself web design visually" guide. Other bits are new to me so Im going to go through your email carefully and try to follow each step. Having read your email, I take it whatever graphics web layout I design on inkscape or any other programme won't just be uploaded directly to a site? So basically the design is just an example and I would use it to write the code from scratch? Thanks all for your input and also thanks Kingy for the vid link - Im going to have a look at it now. This site is great, you are all so helpful!
February 15, 201115 yr Yes if you upload the image it will just be an image. There are editors where you can make the site visually like dreamweaver but if you don't understand the code when doing this you could run into all sorts of problems.
February 15, 201115 yr Author I see... I have something called Komodo Edit which I presume is an HTML/CSS editor. Is it better to learn how to work with this program or do you normally just code in notepad?
February 15, 201115 yr If you learn to use code and note pad then you can easily use any other programs. I'm not familial with that one, but some of them can be very useful when starting out, advising what code to use, telling you if you make a mistake and so on.
February 15, 201115 yr Author I stumbled across this youtube video ("Inkscape Tutorial by heathenx: Slice Web Page Layout") but am confused as to how I would add the saved slices to the website? Does anyone know what the purpose of slicing is? It doesnt create the code for you, so is it just cutting the doc into various images so you can add them to the design seperately? And if so, why would you do this rather than just creating the code from scratch? Sorry if Im being a pest, there's just so much info out there and I'm trying to organise it so it makes sense in my head! Also, apologies for not embeding the video or adding a link - I haven't yet reached 25 posts so it doesnt let me - please bear with
February 15, 201115 yr I stumbled across this youtube video ("Inkscape Tutorial by heathenx: Slice Web Page Layout") but am confused as to how I would add the saved slices to the website? Does anyone know what the purpose of slicing is? It doesnt create the code for you, so is it just cutting the doc into various images so you can add them to the design seperately? And if so, why would you do this rather than just creating the code from scratch? Sorry if Im being a pest, there's just so much info out there and I'm trying to organise it so it makes sense in my head! Also, apologies for not embeding the video or adding a link - I haven't yet reached 25 posts so it doesnt let me - please bear with If you post the image you are trying to code then we can point you in the right direction regarding coding it
February 15, 201115 yr Author If you post the image you are trying to code then we can point you in the right direction regarding coding it Hiya, its at the top of this post. Thanks in advance for any help you can give
February 15, 201115 yr I don't like making pages out of slices. Personally if I was given the above image as a design concept, I'd first analyse the image and see what exactly I need from the image to make it into a webpage. So firstly the green header, that can be done in an HTML div, so thats no needed, I'd use CSS background-color for the green. The navigation links I'd put in an unordered list inside of the header div, so I don't need anything from the links (ignoring the font for now). I'll need the logo, so I'll cut/slice that out and just put it in as a background-image again. The rest of the site can be made up from div tags with some basic CSS. Here is a HTML/CSS template in a similar style to your concept you can start off with - http://www.code-sucks.com/css%20layouts/fixed-width-css-layouts/1-column-css-layouts/fw-1-1-col/
February 15, 201115 yr Here is a quick start to your nav, its not perfect but hopefull it will give you an idea <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <link href="test.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="topnav"> <ul> <li><a href="index.php">Home</a></li> <li><a href="tutorials.html">Tutorials</a></li> <li><a href="videos.html">Videos</a></li> <li><a href="worksforsale">Works for sale</a></li> <li><a href="aboutme.html">About me</a></li> <li><a href="freebies.html">Freebies</a></li> <li><a href="contact.html">Contact</a></li> </ul></div> </div> </body> </html> and save the below code as test.css * {margin:0; padding:0; } #wrapper {margin:0 auto; width:960px; height:auto; } #topnav { display:block; height:24px; font-size:25px; font-family: Calibri; } #topnav ul { list-style-type:none; width:960px; height:70px; background-color: #66FF00; } #topnav ul li { display:block; float:left; margin-left:15px; } #topnav ul li a { display:block; margin-right:32px; margin-top:40px; color:#fff; text-decoration:none; } #topnav ul li a:hover { color: #999999; }
February 15, 201115 yr Author Pat24 Brill, thank you! It looks so good, all I have to do is change the font type. So gratefull to you for writing all this code for me. Its also good to see how applying the style sheet changes the look completely and great for learning as I can now understand and compare the code to the graphic side of it. Could I add the CSS into the HTML sheet or do you recommend keeping it external? What are the benefits of having an external one? Jock Valuable info - and im going to check out the link now.
February 15, 201115 yr Some good advice in this post. Could I add the CSS into the HTML sheet or do you recommend keeping it external? What are the benefits of having an external one? A major benefit of using an external style sheet, is if you need to make a change to the site as a whole, ie, the font size, you would only need to change it once, and the change would be applied site-wide (or at least to all pages linked to this style sheet). If you add the css to each HTML page, if you wished to change the font size site-wide, you would need to change it on every HTML page - as a site grows, this is far from ideal! Something that I found useful when I was first starting out (and still do!) is to check the source code of any websites that do something that I'm interested in/would like to emulate. Right click within your browser, and click "view page source". I'm not saying this is the sole route to go down, but it certainly helps you piece together how a particular aspect of a website is put together -- Just to add, there is no doubt the code will be pretty bewildering at first, but part of the learning process for me was sifting through all the code and finding out what did what. -- Kyle Edited February 15, 201115 yr by KCooper
February 15, 201115 yr Author I don't like making pages out of slices. Personally if I was given the above image as a design concept, I'd first analyse the image and see what exactly I need from the image to make it into a webpage. So firstly the green header, that can be done in an HTML div, so thats no needed, I'd use CSS background-color for the green. The navigation links I'd put in an unordered list inside of the header div, so I don't need anything from the links (ignoring the font for now). I'll need the logo, so I'll cut/slice that out and just put it in as a background-image again. The rest of the site can be made up from div tags with some basic CSS. Here is a HTML/CSS template in a similar style to your concept you can start off with ... This is really helpful as it is basically my layout. Also, the code sucks website has quite a bit of good info so thank you. I've downloaded the code, and am having a go trying to change the colours. In the CSS section, it says the following: #header { width: 900px; color: #333; padding: 10px; border: 1px solid #ccc; height: 100px; margin: 10px 0px 5px 0px; background: #BD9C8C; Under backround, Im trying to get it to green, but its not working. It says #BD9C8C here, which is the coffee colour, but when I change it to #87ec10ff which is RGBA for my green colour, it just goes white? Is it not specifying RGBA? I think there are other ways to specify colour like in Hexadecimals etc, but I dont know the code that will specify which colour type I want to use.
February 15, 201115 yr A background colour can only have 6 digits eg #66FF00 I will try and match your colour if you are struggling Try #85ee11 Edited February 15, 201115 yr by pat24
February 15, 201115 yr Author Some good advice in this post. A major benefit of using an external style sheet, is if you need to make a change to the site as a whole, ie, the font size, you would only need to change it once, and the change would be applied site-wide (or at least to all pages linked to this style sheet). If you add the css to each HTML page, if you wished to change the font size site-wide, you would need to change it on every HTML page - as a site grows, this is far from ideal! Something that I found useful when I was first starting out (and still do!) is to check the source code of any websites that do something that I'm interested in/would like to emulate. Right click within your browser, and click "view page source". I'm not saying this is the sole route to go down, but it certainly helps you piece together how a particular aspect of a website is put together -- Just to add, there is no doubt the code will be pretty bewildering at first, but part of the learning process for me was sifting through all the code and finding out what did what. -- Kyle You are so right about looking at other poeples code, I do it quite often now. Infact, I looked at your websites code because it's really a cool looking site. So jealous of you that you know how to code websites like that, but I guess as with everything, practice makes perfect. If I was learning Spanish I wouldnt expect to have a full on conversation right off the bat so I cant expect to understand HTML and CSS all in one go. Perserverence seems to be key with code!
February 15, 201115 yr Try #88EC10. If you use a good image editor (I use photoshop) there will be a colour palette, from where you can find the 6 character hexidecimal value. To find the green colour above, I used a tool called "colorpix". Once you load it, it displays the 6 character hexidecimal value for anything your mouse cursor is hovered over. Link; http://www.colorschemer.com/colorpix_info.php Kyle
February 15, 201115 yr Author A background colour can only have 6 digits eg #66FF00 I will try and match your colour if you are struggling Try #96f033 That looks better! How did you find that out?
February 15, 201115 yr That looks better! How did you find that out? Matched it as #85ee11 Using fireworks, if you need a graphics program you could try gimp it is open source http://www.gimp.org/downloads/
February 15, 201115 yr Author Try #88EC10. If you use a good image editor (I use photoshop) there will be a colour palette, from where you can find the 6 character hexidecimal value. To find the green colour above, I used a tool called "colorpix". Once you load it, it displays the 6 character hexidecimal value for anything your mouse cursor is hovered over. Kyle I get it now thanks! The site is similar to Adobe's "Kuler" which also has loads of colour schemes. I never knew how to apply them though, but now I do as I can see you just use the Hex code. Definitely going to bump up your post
February 22, 201115 yr Hello all, Wondering if you could help. Ive just designed a test web page on inkscape (attached), but now I dont have a clue what comes next - yep, i really am a complete beginner! How do I upload it so that it can be part of a website? I have Komodo edit but I dont have a clue how to use it. What do I do now that I have the graphics sorted? Do i have to write the code for the graphics? Or do I just upload the whole page as a picture? And how do I make the text I added on the Nav Bar become links? Please help, Im super confused with it all All I have at the moment is a design and now Ive hit a wall. So clueless! Hi, You are at the right place, First after designing your web site find a hosting company that would make your web site as a part of web there are two type of hosting one is paid and other is free hosting search in google for best hosting company and choose your plan either paid or free hosting and then after choosing and registering to a hosting company you will be given C panel details like user name pass word and ftp details using this login to your account and then upload your website in the path
February 22, 201115 yr Hi, You are at the right place, First after designing your web site find a hosting company that would make your web site as a part of web Make your website as part of the web? :s there are two type of hosting one is paid and other is free hosting Only two eh? So what about shared, private, reseller, free, paid, IIS, apache etc etc? using this login to your account and then upload your website in the path Read original post please, there is no coded site to upload! What company do you work for? I'm interested in your outstanding services!
February 22, 201115 yr Author Hi, You are at the right place, First after designing your web site find a hosting company that would make your web site as a part of web there are two type of hosting one is paid and other is free hosting search in google for best hosting company and choose your plan either paid or free hosting and then after choosing and registering to a hosting company you will be given C panel details like user name pass word and ftp details using this login to your account and then upload your website in the path Lol, very strange reply....
February 22, 201115 yr Lol, very strange reply.... Haha yeah sorry bout them peeps, they're are just trying to bulk up their post count so they can post spam links. Best just to ignore them. They don't understand sarcasm either. lol
February 22, 201115 yr This is really helpful as it is basically my layout. Also, the code sucks website has quite a bit of good info so thank you. I've downloaded the code, and am having a go trying to change the colours. In the CSS section, it says the following: #header { width: 900px; color: #333; padding: 10px; border: 1px solid #ccc; height: 100px; margin: 10px 0px 5px 0px; background: #BD9C8C; Under backround, Im trying to get it to green, but its not working. It says #BD9C8C here, which is the coffee colour, but when I change it to #87ec10ff which is RGBA for my green colour, it just goes white? Is it not specifying RGBA? I think there are other ways to specify colour like in Hexadecimals etc, but I dont know the code that will specify which colour type I want to use. To use RGBa in CSS, use the following format: background-color: rgba(200, 54, 54, 0.5); With the first three being the RGB values (numeric, 0-255) and the third being the alpha (numeric, 0.0-1.0). You can also use the first three values with: background-color: rgb(200, 54, 54); Problem with using RGBa is that older browsers (IE8, Opera 9, Safari 2, Firefox 2) will not be able to use the alpha value, so it's best to combine them like so: background-color: rgb(200, 54, 54); background-color: rgba(200, 54, 54, 0.5); giving a solid colour for the older browsers to fall back to. If you don't need to vary the opacity, it's probably best to use hex.
Create an account or sign in to comment