Google Answers Logo
View Question
 
Q: A little CSS help for my Scouting Website ( No Answer,   0 Comments )
Question  
Subject: A little CSS help for my Scouting Website
Category: Computers > Programming
Asked by: davidfilmer-ga
List Price: $10.00
Posted: 28 Jan 2004 00:25 PST
Expires: 04 Feb 2004 00:00 PST
Question ID: 301038
Greetings. I'm developing a Scouting website, and am in the process of
converting the table-based layout to CSS.

Have a look at my development site,
   http://scoutsite.net
and notice the top header (Troop 1234, Anytown, USA). That is
currently a table-based layout (and it's the only table-based layout
remaining on my mainpage - everything else has already been converted
to CSS).

You can see (only) the table-based header at
   http://scoutsite.net/perl/skin.cgi?frame=header

I've made a stab at converting that header to CSS. You can view the
results of my efforts at
   http://scoutsite.net/perl/skin.cgi?frame=header_new
(ignore the thin black and gold borders, which are there to help me
visualize the blocks and will be removed when it's done). The
stylesheet can be viewed at
   http://scoutsite.net/styles/ScoutSite.Troop.frame.css
(and the stuff at the very bottom under #FrameTopRow applies to this matter).


It's ALMOST correct. The left-hand part is fine (well, it needs
tweaking, but the positioning is OK). The right-hand part is giving me
trouble. I want to replicate in CSS what I did with tables - two links
(stacked, vertically-centered), right-justified against a
vertically-centered image, and everything right-justified on the page.

It ought to be simple, but I've tried many iterations and nothing works correctly.

The header is 50px high. The CSS, BTW, validates at W3C.org, so at
least it doesn't contain any overt syntax problems (but logic
problems, obviously).

I appreciate any assistance.

/********************************************************************

For posterity (ie, Google Answers Archives), the relevant CSS and HTML
are replicated here:

#FrameToprow {
   border:           1px gold solid;
   height:           50px;
   padding:          0;
   margin:           0;
   color:            $menu_text_color{$type};
   background-color: $background_dark{$type};
   color:            $menu_text_color{$type};
}

#FrameToprow div.row span.left {
   border:           1px black solid;
   line-height:      50px;
   height:           50px;
   margin:           0;
   float:            left;
   text-align:       left;
   font-weight:      bold;
   vertical-align:   middle;
}

#FrameToprow div.row span.right {
   border:           1px black solid;
   line-height:      50px;
   height:           50px;
   margin:           0;
   float:            right;
   text-align:       right;
   font-weight:      normal;
   vertical-align:   middle;
}

#FrameToprow span.unit {
   font-size:        30px;
}

#FrameToprow span.locale {
   margin-left:      1em;
   font-size:        18px;
}

#FrameToprow div.links {
   text-align:       right;
   margin:           0;
   line-height:      50px;
   vertical-align:   middle;
}

#FrameToprow p {
   margin:           0;
   padding:          2px;   
}

#FrameToprow span.logo_small img {
   border-style:     none;
   height:           33px;
   width:            30px;
   padding:          9px 10px 8px 10px;
   margin:           0;
}

/******** And the HTML **********/

<body>
<div id="FrameToprow">
   <div class="row">
      <span class="left">
         <span class="unit">
            Troop 1234 
            <span class="locale">
               Anytown, USA
            </span>
         </span>
      </span>

      <span class="right">
         <div class="links">
            testing,testing 
            <span class="logo_small">
               <a alt="Boy Scouts of America" target="_BLANK"
                href="http://www.scouting.org/">
                   <img alt="Boy Scouts of America"
                src="/images/skin/logo.bsa.gold.small.png" /></a>
            </span>
         </div>
      </span>
   </div>

</div>
<br />
</body>

*******************************************************************/
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy