1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to create buttons in HTML

Discussion in 'HTML & Website Design' started by rabi_nawaz, Jul 29, 2012.

  1. #1
    I make buttons (home, about us, academics, affiliation, Campuses, FAQ's,) for my website in Photoshop please anyone tell me how i set up these buttons. when anyone click on home the page goes on home page. and similarly other buttons also work. I am so thanks full for my help.
     
    rabi_nawaz, Jul 29, 2012 IP
  2. rabi_nawaz

    rabi_nawaz Greenhorn

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    i think this is for adds or banners of publicity. I want help for buttons. the 7 - 8 buttons in a line on the top of website. when anyone click on home button the link goes to home page. i design the buttons like (home, about us, academics, affiliation, FAQ's etc ).
     
    rabi_nawaz, Jul 29, 2012 IP
  3. benali

    benali Member

    Messages:
    63
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #3
    I would recommend that research on Youtube there are a lot of lessons
     
    benali, Jul 29, 2012 IP
  4. dareknyght

    dareknyght Banned

    Messages:
    116
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #4
    You use lists for that purpose and display them inline!

    HTML:
    
    <ul>
    <li><a href="#">Home</a></li>
    <li><a href="#">About Us</a></li>
    <li><a href="#">Academics</a></li>
    <li><a href="#">Affiliation</a></li>
    </ul>
    
    Code (markup):
    If you have images for navigation menu, then replace text within <a> tags to an image tag

    
    <ul>
    <li><a href="#"><img src="images/home.png" alt=""/></a></li>
    </ul>
    
    Code (markup):
    CSS:

    ul li {list-style: none; display: inline}
    Code (markup):
     
    dareknyght, Jul 29, 2012 IP
  5. wyeoh

    wyeoh Greenhorn

    Messages:
    31
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    8
    #5
    The example dareknygt gave is correct. You can have a ul list hosting your image link. Then use the display: inline to get the list show up one next to another instead of one on top of another.

    Check out http://css.maxdesign.com.au/listutorial/horizontal_master.htm to read more.
    As you can see, the text menu is listed horizontally.
    So instead of having text in <li>, you replace it with your <img src=""> so that your images show up.
     
    wyeoh, Jul 29, 2012 IP
  6. jhon prince

    jhon prince Peon

    Messages:
    411
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Go to w3schools.com for HTML and CSS tutorial, or search on YouTube or Google.
     
    jhon prince, Jul 30, 2012 IP
  7. kinza

    kinza Member

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #7
    just give them hyperlinks
     
    kinza, Jul 30, 2012 IP
  8. terrypasencio

    terrypasencio Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Last edited: Jul 30, 2012
    terrypasencio, Jul 30, 2012 IP
  9. SteveA85

    SteveA85 Greenhorn

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #9
    You don't want to download some free templates and on it to try make some changes? Look at how it woks and will try to do it on your website.
    Good luck!
     
    SteveA85, Aug 1, 2012 IP
  10. cesurasean

    cesurasean Active Member

    Messages:
    269
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #10
    They can also use an image map, but that type of code seems to be a bit more prehistoric these days.
     
    cesurasean, Aug 1, 2012 IP
  11. str8flush

    str8flush Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    nice share.
     
    str8flush, Aug 1, 2012 IP
  12. jackshobs

    jackshobs Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Also, you can HTML code for Button.

    <input name="Submit" type="submit" value="Submit">

    This code for display a Button.
     
    jackshobs, Aug 4, 2012 IP
  13. RankViper

    RankViper Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    You can create a button by using this code:
    <button type="button">Click here!</button>
     
    RankViper, Aug 5, 2012 IP
  14. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #14
    IM me and I show ya how
     
    ezprint2008, Aug 5, 2012 IP
  15. richardm55

    richardm55 Active Member

    Messages:
    762
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    65
    #15
    I think you did not mean the buttons but navigation. For navigation list tags are used with links to other pages. Some people before have mentioned how to write code for this. Also css styles this navigation with appropriate code.

    Buttons are rather used for form tags and some other people also have mention about it.
     
    richardm55, Aug 6, 2012 IP
  16. templatesofty

    templatesofty Member

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #16
    I think downloading web templates is the best solution for your problem. You can download a template of your choice with all things or buttons that you want in your site. There are so much varieties of templates on internet..You can also take advantage of my site that provides large range of free css templates &amp; html templates for various categories. Just download and edit template...
     
    templatesofty, Aug 6, 2012 IP
  17. 2Good

    2Good Peon

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    If you know photoshop then make buttons in it otherwise use button factory named software which have many beautifull premade buttons and now after making buttons open dreamweaver and import buttons there and use some css and walla all is done.
     
    2Good, Aug 7, 2012 IP