Jump to content

WebFerret

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by WebFerret

  1. Try this code. You will need to declare functionOne and functionTwo in the head section of your HTML document. <input value="My Button" onclick="functionOne(); functionTwo();" type="button">

  2. To make a responsive website looks good on many different screens you will want to work in percentages or ems. CSS media queries will also be useful if you want to change your CSS depending on the device your site is being viewed on. Try to avoid pixels wherever possible.

  3. Copy the code below into a text editor and have a play with it. Put your images inside the div tags.

    <html><head><style>.box {float: left;padding: 5px;margin: 5px;width: 250px;height: 250px;background-color: #338833;}</style></head><body><div class="box"></div><div class="box"></div><div class="box"></div><div class="box"></div><div class="box"></div></body></html>

  4. Since your business name is a very important piece of information you would usually use a h1 tag to display it.For example:

    <h1>Business Name Goes Here</h1>

    Also, I suggest you use something a little more 'code friendly' than notepad. I personally use Netbeans but there are many others such as Notepad ++ or Sublime text.

  5. I personally use CSS as opposed to images wherever possible. Something like this code might help get you started:

    <html><head> <style> .orangeBox { display: inline-block; padding: 1%; width: 48%; background-color: #ffaa00; } </style></head><body> <div class="orangeBox"> Box 1 </div> <div class="orangeBox"> Box 2 </div></body></html>

    Have a play around with it and see if it helps you.

×
×
  • Create New...