+ Reply to Thread
Results 1 to 7 of 7

Thread: How to determine the size of a HTML box
      
   

  1. #1
    jcaywood is offline Major
    Join Date
    Dec 2007
    Location
    Bastrop, TX USA
    Posts
    417

    Default How to determine the size of a HTML box

    I've looked and searched for this but can't find it - although I bet there is an answer that is evading me.

    I'm using a CSS Master Menu and I have placed the HTML box on each page where I want the menu to appear. How can I figure out the size of the menu so I can size the box on each page the same size as the menu?

    I've been putting a text box and publishing and looking at it, and then adjusting it and publishing and looking, and ...
    Is there an easier way? A few test pages are at:

    http://www.thegoofygiftshop.com/mchc

    Thanks

  2. #2
    Marincky's Avatar
    Marincky is offline General
    Join Date
    Apr 2006
    Location
    Warwickshire, UK
    Posts
    4,565

    Default Re: How to determine the size of a HTML box

    Place an html box OVER the area in your master page, match it to the size, cut it and place it on your pages.
    Don't aim for success if you want it; just do what you love and believe in, and it will come naturally.

  3. #3
    jcaywood is offline Major
    Join Date
    Dec 2007
    Location
    Bastrop, TX USA
    Posts
    417

    Default Re: How to determine the size of a HTML box

    Well, my problem is I can't figure out what size to make the HTML box on the master page either. I don't believe the size of the box affects the size of the menu. Or does it? I can make it larger or smaller and the menu seems to stay the same.
    By placing a text box with background color, I can get it close after a few publishes. For example I just did that and after publishing 3 times I see my menu is approx 150w and 230h.

    I guess I'm just a bit lazy and looking for the easy way.

    Thanks

  4. #4
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: How to determine the size of a HTML box

    Hi have a play around with numbers in the highlighted areas of the CSS code to adjust the menu characteristics. The boarders in the main area & hover area should match. All best done one at a time, then save & preview.


    <style type="text/css">
    #menu a, #menu a:visited {
    text-decoration:none;
    text-align:center;
    font-family:lucinda console;
    background-color:#7ED0F2;
    color:#ffffff;
    display:block;
    width:8em;
    padding:0.1em;
    margin:0.2em auto;
    border-right:3px solid #7ED0F2;
    border-left:3px solid #7ED0F2;
    }
    #menu a:hover {
    border-right:3px solid #000000;
    border-left:3px solid #000000;
    color:#000000;
    }
    </style>

  5. #5
    jcaywood is offline Major
    Join Date
    Dec 2007
    Location
    Bastrop, TX USA
    Posts
    417

    Default Re: How to determine the size of a HTML box

    Thanks Chris,
    I'm just playing around with the pages now. I didn't want to do much to the menu colors until I figure out what the pages will look like - background colors, etc.
    Actually though, I sorta liked the borders changing to a different color when you hover on them. Of course, I do have a good sense of humor and perhaps different tastes...
    That is the css code you gave me a year ago for the high school class website. I play around with it a lot trying to figure out what each does. I appreciate the red text above.
    Thanks

  6. #6
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: How to determine the size of a HTML box

    Hi, there is a whole load of different menus on this site with very similar layouts to play with. LINK. Good luck.

  7. #7
    jcaywood is offline Major
    Join Date
    Dec 2007
    Location
    Bastrop, TX USA
    Posts
    417

    Default Re: How to determine the size of a HTML box

    In determining the size of HTML boxes, Firefox has an addon - Measureit - which allows you to get the dimensions of a CSS menu or anything else on a page. I published my page with CSS menu and can get its size so I can make the boxes on my other pages the correct size.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49