Simple CSS Help (I think)

Hey Gang,
I'm making a pretty straight forward Horintal List using
Display: Inline.
Done it a bunch of times using an unordered list, but this
time, I need an
ordered list (need to show the numbers).
For some reason, when I apply the inline style, the numbers
dissappear.
I'm hoping I'm just missing a step, would someone mind having
a peek at this
short code?
Everything lays out fine, I just need the numbers to show.
Thaks
-Dave
#MovesNav ol {
Margin: 0px;
Padding: 0px;
font: 10px Verdana;
#MovesNav li {
Margin: 0px 10px 0px 0px;
display: inline;
<div id="MovesNav">
<ol>
<li><a href="#">The Jab</a></li>
<li><a href="#">The Cross</a></li>
<li><a href="#">The Hook</a></li>
<li><a href="#">The
Uppercut</a></li>
<li><a href="#">Front Contraction
Kicks</a></li>
<li><a href="#">Roundhouse
Kicks</a></li>
<li><a href="#">Side Contraction
Kicks</a></li>
<li><a href="#">The Back
Kick</a></li>
</ol>
</div>

that did it.. thanks much!!
#MovesNav a {
font: 12px Verdana;
margin-right: 10px;
white-space: nowrap;
"Osgood" <[email protected]> wrote in
message
news:[email protected]...
> Go back to the solution I supplied using the ol/li tag
and add this to the
> li css:
>
> white-space: nowrap;
>
>
> or you could try adding it to the 'a' tag in your
version.
>
>
>
>
>
> Dave Bar wrote:
>
>> Thaks for the quick reply.
>>
>> I went a similiar route with manually entering the
numbers, but dropped
>> the lists and did it all through the anchor tag
>>
>> Here's a followup question for both the LI and the
Anchor method.
>> Is there a way to keep the contents of an anchor tag
from breaking to a
>> second line when running out of space.
>>
>> Like when the end of the Dic tag is just before 3
>> this is one - this is two - this is
>> three
>>
>> It would be cool if the entire line withni the
anchor would go to the
>> next line
>> this is one - this is two -
>> this is three
>> Is that possible?
>>
>> Here's the code using just anchors:
>> #MovesNav a {font: 12px Verdana; margin-right:
10px;}
>> #MovesNav a:link, a:visited, a:active {color:
#000000;
>> text-decoration:underline;}
>> #MovesNav a:hover{color:#0033CC;
text-decoration:underline;}
>>
>> <div id="MovesNav">
>> <a href="#">1. The Jab</a>
>> <a href="#">2. The Cross</a>
>> <a href="#">3. The Hook</a>
>> <a href="#">4. The Uppercut</a>
>> <a href="#">5. Front Contraction
Kicks</a>
>> <a href="#">6. Roundhouse Kicks</a>
>> <a href="#">7. Side Contraction
Kicks</a>
>> <a href="#">8. The Back Kick</a>
>> </div>
>>
>> Thanks Again
>> -Dave
>>
>> "Osgood" <[email protected]>
wrote in message
>> news:[email protected]...
>>
>>>Try wrapping the numbers in a <span> tag
(see code below) then giving the
>>>span some right padding using css.
>>>
>>>span {
>>>padding-right: 4px;
>>>}
>>>
>>>
>>><div id="MovesNav">
>>> <ol>
>>> <li><a
href="#"><span>1</span>The Jab</a></li>
>>> <li><a
href="#"><span>2</span>The
Cross</a></li>
>>> <li><a
href="#"><span>3</span>The Hook</a></li>
>>> <li><a
href="#"><span>4</span>The
Uppercut</a></li>
>>> <li><a
href="#"><span>5</span>Front Contraction
Kicks</a></li>
>>> <li><a
href="#"><span>6</span>Roundhouse
Kicks</a></li>
>>> <li><a
href="#"><span>7</span>Side Contraction
Kicks</a></li>
>>> <li><a
href="#"><span>8</span>The Back
Kick</a></li>
>>> </ol>
>>> </div>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>Dave Bar wrote:
>>>
>>>
>>>>Hey Gang,
>>>>
>>>>I'm making a pretty straight forward Horintal
List using Display:
>>>>Inline.
>>>>
>>>>Done it a bunch of times using an unordered
list, but this time, I need
>>>>an ordered list (need to show the numbers).
>>>
>>>>For some reason, when I apply the inline
style, the numbers dissappear.
>>>>I'm hoping I'm just missing a step, would
someone mind having a peek at
>>>>this short code?
>>>>
>>>>Everything lays out fine, I just need the
numbers to show.
>>>>Thaks
>>>>-Dave
>>>>
>>>>#MovesNav ol {
>>>> Margin: 0px;
>>>> Padding: 0px;
>>>> font: 10px Verdana;
>>>>}
>>>>#MovesNav li {
>>>> Margin: 0px 10px 0px 0px;
>>>> display: inline;
>>>>}
>>>>
>>>><div id="MovesNav">
>>>> <ol>
>>>> <li><a href="#">The
Jab</a></li>
>>>> <li><a href="#">The
Cross</a></li>
>>>> <li><a href="#">The
Hook</a></li>
>>>> <li><a href="#">The
Uppercut</a></li>
>>>> <li><a href="#">Front
Contraction Kicks</a></li>
>>>> <li><a href="#">Roundhouse
Kicks</a></li>
>>>> <li><a href="#">Side Contraction
Kicks</a></li>
>>>> <li><a href="#">The Back
Kick</a></li>
>>>> </ol>
>>>> </div>
>>>
>>
>>
>

Similar Messages

  • CSS Help! Inserting flash into a div has caused layout change

    Hi,
    I am trying to insert flash into a div. I'm new to CSS so I
    think I must be doing something wrong. As soon as I insert the
    flash the layout goes wrong and all divs below it are pushed down
    out of my "main" div. I've now taken the flash.swf out and inserted
    an image again, but it's still wrong. It previews fine in the
    browser though.
    Any ideas!?
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <link href="style.css" rel="stylesheet"
    type="text/css">
    </head>
    <body background="images/newwall.jpg">
    <div id="wrap">
    <div id="main">
    <div id="flash"><img src="images/flash.gif">
    </div>
    <div id="strip"><img src="images/strip.gif">
    </div>
    <div id="middle">
    <div id="news">
    <div class="newstext">NEWS....
    </div>
    </div>
    </div>
    <div id="gap"><img src="images/gap.gif">
    <div id="subnav"><img
    src="images/wallpaper.gif">
    <div id="bottom"><img src="images/bottom.gif">
    </div>
    </div>
    </div>
    </div>
    </div>
    </body>
    </html>

    And where is the CSS?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Dava" <[email protected]> wrote in message
    news:ei2526$mji$[email protected]..
    > Hi,
    > I am trying to insert flash into a div. I'm new to CSS
    so I think I must
    > be
    > doing something wrong. As soon as I insert the flash the
    layout goes wrong
    > and
    > all divs below it are pushed down out of my "main" div.
    I've now taken the
    > flash.swf out and inserted an image again, but it's
    still wrong. It
    > previews
    > fine in the browser though.
    >
    > Any ideas!?
    >
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN">
    > <html>
    > <head>
    > <title>Untitled Document</title>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    > <link href="style.css" rel="stylesheet"
    type="text/css">
    > </head>
    >
    > <body background="images/newwall.jpg">
    > <div id="wrap">
    > <div id="main">
    > <div id="flash"><img src="images/flash.gif">
    > </div>
    > <div id="strip"><img src="images/strip.gif">
    > </div>
    > <div id="middle">
    > <div id="news">
    > <div class="newstext">NEWS....
    > </div>
    > </div>
    > </div>
    >
    > <div id="gap"><img src="images/gap.gif">
    > <div id="subnav"><img
    src="images/wallpaper.gif">
    > <div id="bottom"><img
    src="images/bottom.gif">
    >
    > </div>
    > </div>
    >
    > </div>
    > </div>
    > </div>
    >
    >
    >
    > </body>
    > </html>
    >
    >

  • Help I think I have Macvx on my computer and I can't get rid of it.

    Help,
    I think I have Macvx on my iMac late 2012 21.5 running the latest OS.
    I am getting heaps of ads in my web browser.
    I have seen similar question from other people and responses explaining to find and search for it in your applications menu but I can't find anything that relates to it or that was installed recently.
    I have even looking in the library and through spotlight search searching the specific words Macvx and Vidx.
    Please help,
    Thank you very much.

    Helpful Links Regarding Malware Problems
    If you are having an immediate problem with ads popping up see The Safe Mac » Adware Removal Guide and The Safe Mac » AdMedic.
    Open Safari, select Preferences from the Safari menu. Click on Extensions icon in the toolbar. Disable all Extensions. If this stops your problem, then re-enable them one by one until the problem returns. Now remove that extension as it is causing the problem.
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
      Mac OS X Snow Leopard and malware detection
      OS X Lion- Protect your Mac from malware
      OS X Mountain Lion- Protect your Mac from malware
      OS X Mavericks- Protect your Mac from malware
      About file quarantine in OS X
    If you require anti-virus protection Thomas Reed recommends using ClamXAV. (Thank you to Thomas Reed for this recommendation.)
    From user Joe Bailey comes this equally useful advice:
    The facts are:
    1. There is no anti-malware software that can detect 100% of the malware out there.
    2. There is no anti-malware that can detect everything targeting the Mac.
    3. The very best way to prevent the most attacks is for you as the user to be aware that
         the most successful malware attacks rely on very sophisticated social engineering
         techniques preying on human avarice, ****, and fear.
    4. Internet popups saying the FBI, NSA, Microsoft, your ISP has detected malware on
        your computer is intended to entice you to install their malware thinking it is a
        protection against malware.
    5. Some of the anti-malware products on the market are worse than the malware
        from which they purport to protect you.
    6. Be cautious where you go on the internet.
    7. Only download anything from sites you know are safe.
    8. Avoid links you receive in email, always be suspicious even if you get something
        you think is from a friend, but you were not expecting.
    9. If there is any question in your mind, then assume it is malware.

  • Can anyone provide a simple css file for Apex Application

    Hi,
    Can anyone provide a simple css file for Apex Application please don't mention W3schools link to learn...
    Regards,
    Pavan

    in each item have ..HTML Form Element CSS Classes .e.g style="color:red",  you can change whatever you want!
    or using CSS at page header level.
    check the page: http://apex.oracle.com/pls/otn/f?p=25110:3:0:::::
    more css and JS file in Google drive(If my application/js/css breaks your computer, your database, your car's transmission anything it's your fault not mine, I have nothing to do with it and will deny all responsibility.)

  • Hi when i send imessages it keeps showing up as my email address on the receiving device. I know its something simple! Help please.

    Hi when i send imessages it keeps showing up as my email address on the receiving device. I know its something simple! Help please.

    Hi Megamanfx,
    If you are having issues with the Sent From settings in iMessage on your iPhone, you may find the following article helpful:
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    Regards,
    - Brenden

  • Simple css layout help

    Hey I know this is a piece of cake for you guys so help me
    out. I've got a simple layout going and set up at
    http://www.clark-imaging.com/ciiicomp/index.html
    and need your help. What is causing the weird white bands behind
    header and maincontent and footer and maincontent? There are no
    margin values assigned to the top and bottom of the header and
    footer, and a value of 0 won't make them go away. Also, how can I
    fix the footer div to the bottom of the window, so the main content
    area stretches with the window?
    Here's an
    image of the look I'm going for.
    Your responses are greatly appreciated.

    This will do what you want. View source code to see how it's
    built.
    http://alt-web.com/CSS2-1-column-fixed-width-centered.html
    Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com

  • Watchless - a simple Bash helper for LESS to CSS compilation

    Here is a simple Bash tool for LESS files compilation, watching your .less files using inotifywait and compiling CSS on file change.
    Supports @import-ed files. Compiled files can go in the current directory or in another directory, keeping the directory structure intact (~/Project/less/style.less to ~/Project/css/style.css for example)
    Not well tested, may be dangerous.
    AUR: https://aur.archlinux.org/packages/watchless/

    I place all my LESS files, along with all of the JavaScript files in a sub-directory called _src (for source files). The _scr folder is Cloaked so that it is not included in file transfers. The structure looks like
    _src
        js
              bootstrap
                  ..... // files go here
              fonts
                  ..... // files go here
              jquery
                  ..... // files go here
              myscripts.js // scripts of my own that I want added
              scripts.js  // contains imported JS files that are combined and minified into one production script
        less
              bootstrap
                  ..... // files go here
              fonts
                  ..... // files go here
              footer.less //
              form.less //
              header.less  // these files are for the various parts of the template and or documents
              main.less //
              nav.less //
              styles.less // contains imported LESS files that are combined and minified into one production style sheet
    I will then use PrePros to compile the JS and CSS files making for just two HTTP requests.
    Have a look at source code (lines 7 and 110) of this site.
    Incidentally, by using PrePros, not only do the LESS and JS files get compiled automatically, any saved changes are immediately visible in my browser without having to refresh each time.

  • Help to move a simple CSS design to an ACE

    Hi, I have a production system on a CSS11503, and the service will be moving to an ACE shortly. I'm nost sure how to convert a couple of "features" of the CSS configuration.
    1. WebDAV support: I had to add the extra HTTP methods;
    http-method parse RFC2518-methods
    http-method parse user-defined-method POLL
    http-method parse user-defined-method SEARCH
    http-method parse user-defined-method SUBSCRIBE
    http-method parse user-defined-method BMOVE
    http-method parse user-defined-method BCOPY
    http-method parse user-defined-method BDELETE
    http-method parse user-defined-method BPROPPATCH
    Do I still need to and how do I?
    2. The stickiness: It is done with an arrowpoint thingy.
    content HTTP-80
    add service Online-1-80
    add service Online-2-80
    add service Online-3-80
    add service Online-4-80
    protocol tcp
    port 80
    vip address x.x.x.x
    advanced-balance arrowpoint-cookie
    balance aca
    active
    How do I acheive the same with the ACE.
    I also intend to use HTTPS in the front, talking to HTTP backend. The balancing should not be affected by this, as the ACE can see the cookies etc.
    Anyone able to guide me on this setup.
    Thanks.

    1. not required with ACE
    2. The equivalent of arrowpoint-cookie in ACE is cookie insert.
    More info on the cookie insert @
    http://www.cisco.com/en/US/products/hw/modules/ps2706/products_command_reference_chapter09186a0080685364.html
    Finally for SSL termination look @
    http://www.cisco.com/en/US/products/hw/modules/ps2706/products_configuration_guide_chapter09186a008068816c.html
    If you need additional help, do not hesitate.
    Gilles.

  • Simple php form help, I think (checkboxes)

    I need a bit of help with some checkboxes in a form being proccessed with php.
    I'm using an array to collect the information then having it emailed.
    <input name="colours[]" value="Red" type="checkbox">Red <br />
    <input name="colours[]" value="Blue" type="checkbox">Blue <br />
    <input name="colours[]" value="Green" type="checkbox">Green <br />
    <input name="colours[]" value="Yellow" type="checkbox">Yellow <br />
    What I'm getting back in the email at the moment is:
    I'm interested in these colours: Array
    Below is the $body of the message:
    $body = "Please contact me regarding the following:\r\n\r\n";
    $body .= "Name: ".stripslashes($_POST['name'])."\r\n";
    $body .= "Address: ".stripslashes($_POST['address'])."\r\n";
    $body .= "Postcode: ".stripslashes($_POST['postcode'])."\r\n";
    $body .= "Telephone: ".stripslashes($_POST['telephone'])."\r\n";
    $body .= "Email: ".stripslashes($_POST['email'])."\r\n";
    $body .= "I'm interested these colours: ".$_POST['colours']."\r\n";
    I guess I need some more php to desl with the array?????
    Thanks
    Os

    Duplicate post. Original has been moved to Dreamweaver Application Development. Locking this thread.

  • HI there, need help in thinking of a logic.

    Good Day!
    I'm having trouble thinking of the logic in this simple (but tediously hard for me) problem.
    I've got two internal tables, say table A and table B. I need to output records from table A that do not match records from table B. and vice versa.
    The thing is, before I can output them, there are 3 primary keys for each table. let's say, ID, Document, and date. I need to match 3 of them to the other table, and if they don't match I would have to print them out.
    What I did was.
    Loop at TABLEA.
         Loop at TABLEB.
            IF TABLEA-ID NE TABLEB-ID AND ...
            WRITE TABLEA-ID ...
            ENDIF.
         ENDLOOP.
    ENDLOOP.
    The problem is,  let's say table a has
    ID: 0
    Doc:1
    Date: 1
    ID:1:
    DOC:1
    DATE:1
    table b has
    ID:1
    DOC:1
    DATE:1
    and so on..
    the loop will first compare table a with b and if it doesn't match well.. it prints it out immediately. Maybe the 1st record of table A is in the 20th record of table B. So I get multiple unmatches. So now I'm turning to the experts here, hope you guys can help.
    I'm not sure if there was a faster way to do this. Any suggestions would be appreciated.
    Edited by: Katrina Dy on Jul 2, 2008 8:56 AM

    Hello
    sort tablea by ID Document date.
    sort tableb by ID Document date.
    loop at tablea.
      read tableb with key ID = tablea-ID
                                    Document = tablea-Document
                                    date = tablea-date
                                    binary search.
      if sy-subrc NE 0.
        write: tablea-ID, ...
      endif.
    endloop.
    loop at tableb.
      read tablea with key ID = tableb-ID
                                    Document = tableb-Document
                                    date = tableb-date
                                    binary search.
      if sy-subrc NE 0.
        write: tableb-ID, ...
      endif.
    endloop.

  • $20 to anyone who can help: (I think) how to send the right cookie info

    Yes, we're so befuddled and stumped that we are willing to pay $25 by Paypal or any other method (check, money order) to the first person who provides us with a concrete solution that allows us to read this page through a Java application:
    http://s1.amazon.com/exec/varzea/subst/your-account/your-open-marketplace-items.html/104-3907538-7794313
    The problem (we think) seems relatively simple: how can we pass the correct cookie to a server? We want to search our merchant web pages on amazon.com (and perform other operations, but for the purposes of this problem, just assume we want to read the above web page). We wrote a variation of a webcrawler which works fine on most web pages. However, the Amazon web pages we want to crawl (i.e., http://s1.amazon.com/exec/varzea/subst/your-account/your-open-marketplace-items.html/104-3907538-7794313) require you to sign in first (otherwise you get redirected to http://s1.amazon.com/exec/varzea/subst/your-account/your-won-zshop-items.html/104-0793551-2976761). So we thought that this meant we had to figure out how to get our webcrawler to login first (we implemented the Java Almanac example for accessing password-protected URLs: http://javaalmanac.com/egs/java.net/Auth.html?l=rel). During the course of testing this out (the code seemed to work, though we still got redirected), we realized that the Amazon web page is not actually performing basic authentication (not asking for username/password), but instead seems (that is, seems to inexperienced us) to be looking for a cookie. We believe this because after we sign in to Amazon, we can access all our merchant web pages just fine without ever needing to log in, even if we turn off the browser (or computer). Also, if we try to access the web page after deleting all cookies, we again get redirected to the page requesting that we sign in.
    So we took a look at the Amazon cookie that was created after we signed in to Amazon (printed below), and then implemented the cookie-passing code from the Java Almanac (http://javaalmanac.com/egs/java.net/SendCookie.html). This seemed to have no effect:we still got redirected. We hunted around for other Cookie examples and found achase1's example from a previous forum question (http://forum.java.sun.com/thread.jsp?forum=54&thread=375956), which seemed to add a few HTTPUrlConnection.set's, but this also had no effect--our Java crawler still gets redirected to the page that requests that we sign in first.
    So we think that either we are somehow passing the wrong cookie information, or are just missing some critical HttpURLConnection setting or parameter.
    So, if you can tell us how to read the Amazon page that seems to require a cookie, and your explanation actually works (that is, we can read the page), we will send you $25 immediately--like so many others on the forum, we're frustrated and lost and need an answer that works!
    Here is the Amazon account information (naturally, this is a working dummy account on Amazon, not our actual account, in case you want to test your solution before posting it):
    username: [email protected]
    password: melville
    Here is the cookie that is generated:
    session-id
    104-3907538-7794313
    amazon.com/
    1536
    3382951936
    29569409
    1475475408
    29568127
    session-id-time
    1055491200
    amazon.com/
    1536
    3382951936
    29569409
    1475575408
    29568127
    ubid-main
    430-1017936-7312154
    amazon.com/
    1536
    2916341376
    31961269
    1482485408
    29568127
    x-main
    Z3yciaQAfpzN?CPFkzeRd8z1U2lWcoap
    amazon.com/
    1536
    2916341376
    31961269
    2005235408
    29568127
    Here is the extra-simplified version of our webcrawler, which simply tries to read (and print out) the web page:
    import java.net.*;
    import java.io.*;
    public class PasswordReader {
    public static void main(String[] args) throws Exception {
    // Try to access the page
    try {
         HttpURLConnection m_urlConn;
         URL url = new URL(args[0]);
    // Cookie passing code
         m_urlConn=(HttpURLConnection)url.openConnection();
         m_urlConn.setDoOutput(true);
         m_urlConn.setDoInput(true);
         m_urlConn.setUseCaches(false);
         m_urlConn.setRequestMethod("POST");
         // optrional
         m_urlConn.setRequestProperty("User-Agent","Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; H010818)");
         m_urlConn.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
         m_urlConn.setRequestProperty("Cookie" , "session-id=104-3907538-7794313;session-id-time=1055491200;ubid-main=430-1017936-7312154;x-main=Z3yciaQAfpzN?CPFkzeRd8z1U2lWcoap");
         m_urlConn.connect();
    // end cookie code
         BufferedReader in = new BufferedReader(
                        new InputStreamReader(
                        url.openStream()));
         String inputLine;
    // Read and print out the web page
         while ((inputLine = in.readLine()) != null)
         System.out.println(inputLine);
         in.close();
    } catch (MalformedURLException e) {
    } catch (IOException e) {
    Thank so much to anyone who even tries to help us!! We've been poring through the Sun forums, almanacs, and sample code all week without much evident progress. You'd really be making us very, very happy.
    Thank you,
    Ogi Ogas
    [email protected]

    "{[VERSION="0" ; NAME="session_id" ; VALUE="@@33f84622845133891a68ec0dffe9f620" ; DOMAIN="my.asu.edu" ; PATH="/" ; SECURE="false" ; EXPIRES="null"]}"
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~The Cookie!
    <HTML><HEAD><!--set cookie-->
    <SCRIPT language='JavaScript'><!--
    document.cookie = "session_id=@@33f84622845133891a68ec0dffe9f620; path=/;";
    // Begin JavaScript
    if(!document.cookie) {
    var agt=navigator.userAgent.toLowerCase();
    var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);
    // Note: Opera and WebTV spoof Navigator.
    var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
    && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
    && (agt.indexOf('webtv')==-1));
    var is_nav2 = (is_nav && (is_major == 2));
    var is_nav3 = (is_nav && (is_major == 3));
    var is_nav4 = (is_nav && (is_major == 4));
    var is_nav4up = (is_nav && (is_major >= 4));
    var is_navonly = (is_nav && ((agt.indexOf(";nav") != -1) ||
    (agt.indexOf("; nav") != -1)) );
    var is_nav5 = (is_nav && (is_major == 5));
    var is_nav5up = (is_nav && (is_major >= 5));
    var is_ie = (agt.indexOf("msie") != -1);
    var is_ie3 = (is_ie && (is_major < 4));
    var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) );
    var is_ie4up = (is_ie && (is_major >= 4));
    var is_ie5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    var is_ie5up = (is_ie && !is_ie3 && !is_ie4);
    // KNOWN BUG: On AOL4, returns false if IE3 is embedded browser
    // or if this is the first browser window opened. Thus the
    // variables is_aol, is_aol3, and is_aol4 aren't 100% reliable.
    var is_aol = (agt.indexOf("aol") != -1);
    var is_aol3 = (is_aol && is_ie3);
    var is_aol4 = (is_aol && is_ie4);
    var is_opera = (agt.indexOf("opera") != -1);
    var is_webtv = (agt.indexOf("webtv") != -1);
    var intro_dir = "This installation of Blackboard 5 requires the acceptance of a cookie by your browser software. ";
    intro_dir += "The cookie is used to ensure that you <I>and only you</I> are able to access information in the courses, assessments, gradebooks and other features which are appropriate for you. <P>";
    intro_dir += "The system has been unable to place the cookie. This may be because cookies are disabled in your browser.<P> To enable cookies in your browser:<ol>";
    var nn4dir = "<LI>Select <I>Preferences</I> from your browser's Edit Menu. <LI>Select <I>Advanced</I> from the list in the left-hand pane of the dialog box. ";
    nn4dir += "<LI>Under the <I>Cookies</I> box, select either of the first two options ('Accept all cookies' or 'Accept only cookies that get sent back to ";
    nn4dir += "the originating server')<LI>Click 'Ok' to close the dialog box. ";
    var ie5dir = "<LI>Select <I>Internet Options</I> from your browser's Tools Menu <LI>Select the <I>Security</I> Tab, and click on the 'Custom Level' button. ";
    ie5dir += "<LI>Scroll down to the 'Cookies' Section, and select either of the last two options under 'Allow Per-Session Cookies (not stored)' - either 'Enable' or 'Prompt'. ";
    ie5dir += "<LI>Click 'Ok' to Close the Security Settings dialog box. ";
    ie5dir += "<P><B>NOTE</B> Depending on your institution's set-up of Blackboard 5, you may need to repeat steps 3 & 4 for more than one 'Security Zone'. ";
    ie5dir += "<BR>For example, if you are connecting from a computer inside the same firewall or network as the Blackboard 5 machine, you would select the 'Local Intranet Zone'. ";
    ie5dir += "<BR>If you are making a connection across the internet from another location, you would select the 'Internet Zone'. <BR>In some cases, you may need to do both.<P>";
    ie5dir += "<LI>Click 'Apply' and 'Ok' to close the Internet Options dialog box.";
    var ie4dir = "<LI>Select <I>Internet Options</I> from your browser's Tools Menu <LI>Select the <I>Advanced</I> Tab. ";
    ie4dir += "<LI>Scroll down to the 'Cookies' Section under 'Security', and select either the first or last option - either 'Prompt before Accepting Cookies' or 'Always Accept Cookies'. ";
    ie4dir += "<LI>Click 'Apply' and 'Ok' to close the Internet Options dialog box.";
    var browser_dir = "<LI>Please follow your browser's Help instructions for enabling Session (non-stored) cookies that are sent back to the originating server.";
    if (is_nav) { browser_dir = nn4dir; }
    if (is_ie5up) { browser_dir = ie5dir; }
    if (is_ie4) { browser_dir = ie4dir; }
    browser_dir += "<LI>Click 'Ok' on this page to return to Blackboard 5.";
    document.write("<table border='0' width='100%' cellpadding='0' cellspacing='0'><tr><td align='left' width='40'> </td>");
    document.write("<td align='left' width='100%'><b><font face='Arial, Helvetica, sans-serif' size='4'>Browser Cookies Disabled</font></b><hr size=5 noshade></td></tr></table>");
    document.write("<table border='0' cellpadding='5' cellspacing='0' width='100%'><tr><td width='20' valign='top'> </td><td width='100%' valign='top'>");
    document.write("<font face='Arial, Helvetica, sans-serif' size='2'><b>Browser Cookies Disabled</b></font><br>");
    document.write("<font size='2' face='Arial, Helvetica, sans-serif'>"+intro_dir);
    document.write(browser_dir);
    document.write("</font><br></td></tr><tr><td colspan='6' align='center'><form><input type=button value='Ok' onclick='javascript:history.go(-1)'></td></tr></table></form>");
    } else {
    var href = document.location.href;
    href = href + "?bbatt=Y";
    document.location.href = href;
    //END JavaScript
    //--></SCRIPT>
    </HEAD><BODY BGCOLOR='FFFFFF'>
    </BODY><HTML>

  • Logo/picture to menubar? simple css problem?

    Hi, I'm having a problem getting a logo to appear correctly in a horizontal menu bar. It appears to be fine in IE 8, Safari 5, Chrome, and Firefox. However in IE 7 and lower it does not seem to display correctly. The only conditional notes I have for IE 7 and lower deals with the slideshow on the page which shouldn't be affecting the menubar as it is in a different div.
    Here is the url: www.elementcentral.com
    Any advice? I could really use some help- I've tried quite a few things but to no avail...
    Thanks for any help you can offer and I'm more than happy to clarify or anything else!
    Sincerely,
    Matt

    Anyone? I'm thinking its just something simple but I can't figure it out for the life of me heh.

  • Simple CSS Layout Test - Gap in IE

    Hey Gang,
    I'm takig the first steps away from Table based layouts into
    CSS Fluid
    layouts.
    I put together a quick and simple layout.
    There is a 2-3 pixel gap between the Left Column and Main
    Content Column in
    IE 6 and 7 (It's fine in Firefox).
    Would someone mind taking a peek and suggesting what I may be
    missing or
    could do better?
    Thanks
    -Dave
    <style type="text/css">
    <!--
    #container {
    width: 100%;
    #header {
    height: 50px;
    background-color: #00CC99; }
    #Leftnav {
    height: 300px;
    Width: 150px;
    background-color:#ff0000;
    float: left;
    #content {
    height: 300px;
    background-color:#99CCFF;
    #footer {
    height: 50px;
    background-color:#000000; }
    -->
    </style>
    <div id="Container">
    <div id="header">Header</div>
    <div id="Leftnav">Left</div>
    <div id="content">content</div>
    <div id="footer">Footer</div>
    </div>

    I've been following the other thread IE Float bug as well.
    I think the challenge that comes up with using the -3 on the
    floated div's
    right margin, is you will then get overlap/underlap in
    Firefox and other
    non-IE browsers.
    In my code example below, the word "Content" in that div tag
    will now
    over/underlap into the red sidebar div(with a -3 on the
    sidbar div)
    This would normally have been a great time to use the old IE
    * hack, but IE7
    defeats that now.
    It's almost that we'd need to use a style for IE (with -3),
    and a different
    style for everything else.
    Does the @Import trick still work with IE7?
    If not, then it's down to javascript browser detection, and I
    guess changing
    the ID of the Div tag to call either a normal style or an IE
    friendly style.
    If this is all true, what a p.i.t.a :>
    "BW" <[email protected]> wrote in message
    news:[email protected]...
    > I'm a newbie so don't take my word as Gospel, but I
    believe it is due to
    > the IE bug and floats. IE adds 3px to the right of a div
    that is floated
    > left.
    >
    > Do a search for 3px jog. One search results suggests
    adding
    > margin-right: -3px; to your left div.
    >
    > This seems to work, but I do not know what that does to
    other browsers.
    >
    > One of the guru's on here will give you the correct
    reasons and answers
    >
    > BW
    >
    > "Dave Bar" <[email protected]> wrote in message
    > news:[email protected]...
    >> Hey Gang,
    >>
    >> I'm takig the first steps away from Table based
    layouts into CSS Fluid
    >> layouts.
    >>
    >> I put together a quick and simple layout.
    >> There is a 2-3 pixel gap between the Left Column and
    Main Content Column
    >> in IE 6 and 7 (It's fine in Firefox).
    >>
    >> Would someone mind taking a peek and suggesting what
    I may be missing or
    >> could do better?
    >> Thanks
    >> -Dave
    >>
    >> <style type="text/css">
    >> <!--
    >> #container {
    >> width: 100%;
    >> }
    >> #header {
    >> height: 50px;
    >> background-color: #00CC99; }
    >>
    >> #Leftnav {
    >> height: 300px;
    >> Width: 150px;
    >> background-color:#ff0000;
    >> float: left;
    >> }
    >>
    >> #content {
    >> height: 300px;
    >> background-color:#99CCFF;
    >> }
    >>
    >> #footer {
    >> height: 50px;
    >> background-color:#000000; }
    >>
    >> -->
    >> </style>
    >>
    >> <div id="Container">
    >> <div id="header">Header</div>
    >> <div id="Leftnav">Left</div>
    >> <div id="content">content</div>
    >> <div id="footer">Footer</div>
    >> </div>
    >>
    >
    >

  • Simple Java help

    OK, I'm new to Java programming and have a project due in class next week. I'm writing a simple gradebook program that takes a grade for a term paper and a pass/fail for two essays and computes the result. I know that the visual portion of this works so I won't bore you all with that. I think the problem is somewhere in the syntax of my actionPerformed function. Here it is
    String essayResult1 = essayBox1.getSelectedItem();
    String essayResult2 = essayBox2.getSelectedItem();
    int essayPoints1, essayPoints2, termPoints;
    if(essayResult1.equals("Pass")) essayPoints1=15;
    if(essayResult2.equals("Pass")) essayPoints2=15;
    Character letterGrade = termField.getText();
    if(letterGrade.equals("A")) termPoints=70;
    else if(letterGrade.equals("B")) termPoints=60;
    else if(letterGrade.equals("C")) termPoints=50;
    else if(letterGrade.equals("D")) termPoints=40;
    else if(letterGrade.equals("F")) termPoints=0;
    else {
    outputField.setText("Error");
    return;}
    String finalScore=new String("" + (essayPoints1+essayPoints2+termPoints));
    outputField.setText("Done");
    I would appreciate any help you experienced programers have. Even a hint as to which lines I'm mangling would be of great help.

    If you could put [code] and [/code] tags around your code it would be much more readable.
    So what is wrong? Do you get a compiler error? Does it give you incorrect results? Do you receive a run-time error?

  • Need CSS help

    I'm relatively new to CSS and stumbling around.  Can someone look at this page and tell me how to get the "more" boxes lined up in the top four white boxes?
    http://www.fbcwentzville.com/new_site_2010/index_new.html
    Would I use a relative position and how would I go about doing that?  Also, when you make changes to the css sheet within Dreamweaver, do changes take place immediately?  I tried playing around with relative position and didn't see any changes to it.
    Thanks!

    Hey Malaperty. Let me help you out and at least fix the issue at hand. Rather easy fix, but it will take a little pixel playing on your end to fine tune where you want your "more" buttons precisely.
    First add   postition:relative; to your .subdiv2  in the css. so the final code will look like this:
    .subdiv2{
                    position:relative;
                    width:225px;
                    float:left;
                    margin:0 12px 0 0;
                    background:url(../images/sub_div_bg.gif) repeat-y 0 0 #D6D7A0;
                    color:#000;
                    height: 350px;
                    padding: 0;
    Next, eliminate the margins from .subdiv2 p.more in your css and add the below code.
    .subdiv2 p.more{
                    position:absolute;
                    bottom:20px; 
                    right:20px;
    I added 20px to the bottom and right properties but this is where you need to play with it to fine tune the placement.  bottom:20px means it will be 20px from the bottom of the .subdiv2 div and right:20px means it will be 20px from the right side of the subdiv2 element.
    I won't get into explaining why all this works as you have some links to learn all this.
    As far as absolute positioning being a bad layout strategy...well that can't be any more wrong. It is only bad if it is misused and then things can get ugly. Use it right and it can make form some of the best web effects that you can imagine. Learn and love it, but always use it wisely.
    Check this link out http://csszengarden.com/   here you will find they use absolute positioning all over the sample sites...truly thinking outside the box. So absolute positioning is not to fear!

Maybe you are looking for