Why is a css 'display:inline;' command not working in one part of the page when it does in another?

I am trying to set my navigation links to be in a line rather than a column after setting them up as an Unordered List. I have already done it for the social network icons but the same css command just won't apply itself for the navigation. Any help would be appreciated.
Here is a copy of the page followed by the relevent protion of the css file, the problem occurs with the styles.css applying to the 'topnav' section:
<!DOCTYPE HTML>
<html>
<head>
    <link href="css/styles.css" rel="stylesheet" type="text/css" media="screen">
    <link href="css/print.css" rel="stylesheet" type="text/css" media="print">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="content-type" content="cache" />
    <meta name="robots" content="INDEX, FOLLOW" />
    <meta name="keywords" content="Enter Keywords" />
    <meta name="description" content="Description Here" />
    <title>Hittite Education by Weirdbeardink</title>
</head>
<body>
<div id="outer">
    <div id="wrapper">
        <div id="logo">
            <ul>
                <li><img src="images/Logo-2.jpg" /></li>
           </ul>
        </div>
        <div id="social-media-icons">
            <ul>
                <li><a href="http:/www.facebook.com"><img src="images/icons/facebook-icon.png" /></a></li>
                <li><a href="http:/www.twitter.com"><img src="images/icons/twitter-icon.png" /></a></li>
                <li><a href="#"><img src="images/icons/rss-icon.png" /></a></li>
            </ul>
        </div>
        <div id="topnav">
            <ul>
                <li><p><a href="index.html">HOME</a></p></li>
                <li><p><a href="about.html">ABOUT</a></p></li>
                <li><p><a href="contact.html">CONTACT</a></p></li>
            </ul>
         </div>
        <div id="topstripe">
            <ul>
                <li><img src="images/stripe.jpg" /></li>
            </ul>
        <div id="picture">
            <ul>
                <li><img src="images/coverpic500px.jpg" /></li>
            </ul>
        </div>
        <div id="content">
            <ul>
                <li><h1>Introduction</h1></li>
                <li><p>This is a unique project undertaken to teach important social topics using sport as the vehicle. Sporting and comedy clips are interspersed with filmed interviews with people like Paul Collingwood, Gary Lineker, Ed Leigh, Faye White and many others. They home in on topics such as teamwork, respect, rules, & money, and they use the pupils' experiences of sport to teach really important lessons about life.</p></li>
             </ul>
        </div>
        <div id="bottomstripe">
            <ul>
                <li><img src="images/stripeflip.jpg" /></li>
            </ul>
        </div>
        <div id="footer">
            <ul>
                <li><p>Copyrite 2011 Hittite Education  |  All rites reserved</p></li>
            </ul>
        </div>
     </div>
</div>   
</body>
</html>
Here is the portion of the styles.css that works (#social-media-icons) and the portion that doesn't (#topnav):
#social-media-icons         { float:right; }
#social-media-icons ul li   { display:inline; }
#social-media-icons ul      { margin-top:100px; }
#topnav                { clear:both; }
#topnav                { width:700px; margin: 0 auto; background-color:#FFF; }
#topnav ul             { padding:10px; }
#topnav ul li          { display:inline; }     <!-- THIS IS THE LINE THAT WONT WORK -->
#topnav ul li a        { padding:0 15px;}
#topnav    a:link            {color:#000; }
#topnav    a:visited        {color:#000; }
#topnav    a:active        {color:#000; }
#topnav    a:focus            {color:#666; }
#topnav    a:hover            {color:#F38E00; }

No need to answer this one as I have had a relpy on another forum. I had <p> tags in the unordered list. Once I took them out it all worked fine

Similar Messages

  • Hi! I sold my Iphone on ebay. The seller wants to connect the Iphone with his Apple ID, but it did not work because it says that the Iphone is already connected with another Apple ID. How can I get rid of this old connection? What do I have to do?

    Hi! I sold my Iphone on ebay. The seller wants to connect the Iphone with his Apple ID, but it did not work because it says that the Iphone is already connected with another Apple ID. How can I get rid of this old connection? What do I have to do?

    What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT5661
    MaggySimpson wrote:
    Hi! I sold my Iphone on ebay.
    Follow the instructions to remove a device you no longer have.
    From here  >  http://support.apple.com/kb/PH13695?viewlocale=en_US

  • Hi. Unfortunately my ethernet card was not working anymore. This is the message "This computer does not appear to have any PCI Ethernet card. How can I fix it?

    Hi. Unfortunately my ethernet card was not working anymore. This is the message "This computer does not appear to have any PCI Ethernet card. How can I fix it?

    i would try an SMC reset, the following article tells how to do this:
    http://support.apple.com/kb/HT3964
    if it still gives that message, you need to take it to apple store or apple service provider to have a new card installed. the apple site gives listings of providers and stores in your area:
    https://locate.apple.com

  • Java script is not working while coming back to the page.

    Hi Experts,
    I am working in jdev 11.1.1.3.0 with ADF BC.
    I am callling javascript in my jsff, while this javascrip is invoking file download method. this java script i am inovking from another button action, because in some case i need to invoke popup and some case i need to invoke file download for this i have taken one button in that button i am invoking these 2 based on some condition. everything is working fine except if i move another jsff and come back to this jsff then the file download is not happening.
    can any one tell me what is the issue here.
    java script:
    function customHandler(event) {
    var exportCmd = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pt_region0:1:cb1")
    var actionEvent = new AdfActionEvent(exportCmd);
    actionEvent.noResponseExpected();
    actionEvent.queue();
    java bean:
    if(downloadFile!=null){
    System.out.println("invoking downloads...............................");
    erks.addScript(context, "customHandler();");
    } if (requestClause != null){
    System.out.println("invoke popup");
    executeSactionCheckVO(requestClause);
    ADFUtils.invokePopup(this.getP2().getClientId(FacesContext.getCurrentInstance()));
    Here my bean is in backing bean scope.
    can any one help what may be the issue here. or if you can tell me how to call file download method from backing that can be great help full to me.
    Edited by: user5802014 on Aug 27, 2010 1:52 PM

    Hi:
    So it's the "erks.addScript(context, "customHandler();");" may not work properly the next time coming back from another jsff.
    And very likely the statement of: var exportCmd = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pt_region0:1:cb1") in your javascript command gave you error. Are you sure that "pt1:pt_resion0:1:cb1" is valid all the time no matter how the page is rendered?
    Please mark my answer as 'Helpful' if it helps.
    Thanks,
    Alex

  • IPad touch-screen sensor the does not work on one part of displey

    I have problem with a part of the screen on my iPad. It seems like the sensor on the screen does not work. When draging items or webpages through that section, the dragging stops. It looks like the screen is not detecting my fingers on that part. Part of the screen that is not working is about 1 cm wide. iPad is 1 month old.
    Message was edited by: micronola

    Had the same issue with a 1cm strip from top to bottom (portrait) not responding.  I did a backup, a complete factory reset, and then a restore of the backup.  So far it seems to be working again!!

  • When I go on a page, content is not display UNTIL I go to that specific part of the page. Usually all content on a page is shown ahead of time. How do I fix it?

    The setting was there before. I remember an option for it, but I don't think it's there anymore.

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • TS4209 This just began to happen with my IMAC. I am using OSX v. 10.8.2. At first I was able to restart (something I don't do normally) and wi-fi would reconnect. Now I have to use the diagnostic on the page when it does not load to connect, any thoughts?

    My IMAC running OSX 10.8.2 has reciently stopped automatically connecting to the internet using wi-fi following a period of being asleep. I have attempted to restart the IMAC which corrected it for a time. Next I followed the instructions on the help page regarding issues with not connecting on wake up. That only corrected the problem within the session. There are no recient downloads available to address this issue, however there are earlier versions which were suppose to address this, is this a new issue or was the old one never fixed. Note I have never had this problem before and I did reboot the wi-fi router, which only corrected the problem for a short period. I do not have the problem with other devices connected (PC Laptop, PC, apple TV and older IPOD touch).
    Thanks.

    Hi, this has worked for a few...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    10.4 instructions...
    Is that Interface dragged to the top of Network>Show:>Network Port Configurations.
    If using Wifi/Airport...
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    Click OK.

  • Why did my email password quit working from one day to the next when my computer was off??

    Password was working fine on Thursday when computer was turned off. Turned computer on today and password won't work. Why is that?

    Have you checked with your email provider?

  • I intermittently (usually around computer start up) receive the "Server Not Found" message which usually loads the page when I try again

    It doesn't happen with IE for the same pages. It has only begun since I installed v4 and now it is occurring with v5 beta.

    Click the Firefox button, go to Options | Options | Advanced and in the Network tab, Offline Storage menu, click the "Clear Now" button.

  • Why is my BDC_CURSOR command not working to position the cursor?

    Why is my BDC_CURSOR command not working to position the cursor?  Here are the details regarding my issue.
    I am writing a BDC to mass delete routing material assignments using transaction CA02.  I am OK to navigate through the initial screen to go to the Header screen and from here I am OK to navigate to the Material Assignments screen.  But once here, I cannot get the BDC_CURSOR command to take me into the list.  Here are the commands I am using.  Please let me know what I may try differently.
    CA02 Material Assignment - Set position  <-- this resets list of materials to correct position
      PERFORM bdc_dynpro      USING 'SAPLCZDI'   '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'  'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'   '=ENT1'.
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'  c_position.
    CA02 Material Assignment - Delete
      PERFORM bdc_dynpro      USING 'SAPLCZDI'   '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'  'MAPL-MATNR(01)'.    <-- this is not working to set the cursor into the list
      PERFORM bdc_field       USING 'BDC_OKCODE'  '=LOE'.             " trash can
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'  c_position.
    CA02 Material Assignment - Green Check OK
      PERFORM bdc_dynpro      USING 'SAPLCZDI'   '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'  'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'   '=BACK'.            " check mark
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'  c_position.

    Thank you for your reply.
    I had used SM35 to record.  However, I was not aware of the "create program" feature.  I had commented out a section from my previous post which I have now added back (latest code below).  But it still did not resolve the issue.
    When I execute with dismode = 'N', I get back error message "No batch input data for screen SAPLCZDI 1010".
    When I execute with dismode = 'E' (only show dynpros when error), it stops at the material selection screen without placing my cursor in the list.  I can then MANUALLY click to set the cursor position in the list, MANUALLY click the trashcan, it then uses my BDC command to respond to the popup asking "Do you want to delete", still leaving me at the material selection screen.  I can then MANUALLY click the green check (or enter), then it continues with the BDC to go back to the previous screen, and saves.  But it still will not place my cursor in the material selection list (SAPLCZDI screen 1010).
    Here is code used.  It is the second section of code labeled "CA02 Material Assignment - Delete" that is not working.
    CA02 Material Assignment - Set position
    this code functions to position the desired material to first in screen list
      PERFORM bdc_dynpro      USING 'SAPLCZDI' '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENT1'.
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                     c_position.
    CA02 Material Assignment - Delete
      PERFORM bdc_dynpro      USING 'SAPLCZDI' '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR' 
                                    'MAPL-MATNR(01)'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=LOE'.             " trash can
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                     c_position.
    Acknowledge Pop-Up Screen
      PERFORM bdc_dynpro      USING 'SAPLSPO1' '0100'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=YES'.
    CA02 Material Assignment - Green Check OK
      PERFORM bdc_dynpro      USING 'SAPLCZDI' '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=BACK'.            " check mark
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                     c_position.

  • Why java only can display GIF file not jpeg and BMP ??

    Did anyone know why java only can display GIF file not in jpeg and BMP ?? This is because the quality of GIS is not as good as Jpeg and BMP
    any code to load the display process ??
    thx guys !!!

    you can do jpegs but im not sure about bmps.
    The only thing ive noticed is that java cant support transparent jpegs, only transparent gifs
    Jim

  • Why does default keyboard shortcut for show/hide baseline grid (opt+command+') not work?

    Why does default keyboard shortcut for show/hide baseline grid (opt+command+') not work?

    Here's where you need to change the settings: System Preferences > Keyboard > Keyboard Shortcuts:

  • Why weren't we told that display mirroring would not work with a Mac older than 12 months?

    Why weren't we told that display mirroring would not work with a Mac older than 12 months?

    You were, just not directly. If you go to apple's mountain lion webpage, you'll see this note at the bottom:
    1. AirPlay Mirroring requires a second-generation Apple TV or later, and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer).
    http://www.apple.com/osx/whats-new/features.html

  • Why is my adobe photoshop elements 12 not working. it says initializing and then it says there is an error and closes itself

    why is my adobe photoshop elements 12 not working. it says initializing then error and shuts itself down.

    Three things you can try:
    1. Clean the superdrive with a proprietory CD/DVD lens cleaner that uses tiny brushes.
    2. Perform an SMC reset:
    Resetting the SMC (System Management Controller) on Intel-based Macs:
    http://support.apple.com/kb/ht3964  and
    http://support.apple.com/kb/HT1237?viewlocale=en_US
    Resetting your Mac's PRAM and NVRAM:
    http://support.apple.com/kb/ht1379
    If you are using a Wireless Keyboard:
    http://support.apple.com/kb/TS3273
    3. Try the free DVD player VLC:
    http://www.videolan.org/vlc/
    which performs better than the built-in DVD Player.

  • I have a 27" thunderbolt display NOT the iMac, and I'm trying to connect my xbox 360 to it via the Belkin AV360. I plug everything in and it does not work? I check all the power cables and and connections and still not he issue. Iv'e tried C-F2 also. Help

    I have a 27" thunderbolt display NOT the iMac, and I'm trying to connect my xbox 360 to it via the Belkin AV360. I plug everything in and it does not work? I check all the power cables and and connections and still not he issue. Iv'e tried C-F2 also. has anyone used this devive (AV360) on there own 27" thunderbolt display (not the imac) and gotten it to work? If so I'd appreciate the help.

    There are multiple reasons that lead to issue. You should read the troubleshooting guide to get the right solution to solve the issue: iPhone, iPad, or iPod touch not recognized in iTunes for Windows - Apple Support

Maybe you are looking for

  • How can I remove a flag using a rule in Mail.app?

    I'm using Mail Act-On to flag messages that are important. I also have got a smart mailbox that displays only those messages that are flagged, this is my "To Do" mailbox. Once I've read and answered the message I want to remove the flag, preferrably

  • Multi-Display Question for Late 2009 Mini

    Hello, I have a very quick question. I was looking at attaching an additional monitor to my late 2009 Mac Mini Core 2 Duo 2.26 GHz. It has two ports for video, the *Mini Displayport* and the *Mini DVI*. I was looking at springing for the $20 adaptor

  • Mail taking up 5MB for iCloud Backup - Why?

    Why does my iCloud backup say I have 5MB of Mail on my iPhone to backup when I do not use iCloud Mail, I use Hotmail...Never have used iCloud email.    Trying to backup my phone to the iCloud for the first time.   Is there a way to turn off backing u

  • Zoom, drag and drop in a movie clip

    if zoom a movie clip...i want drag and drop the mc...and also don't go the mc outside the screen..pls help me...:(

  • Why photos in iPhoto (mac) have a different size (mb) than the original?

    I have noticed that some photos (not all) have a smaller size (in MB) in iPhoto than the original ones. Do you know the reasons of such decrease of size? iPhoto import procedure is supposed to not lose any information wrt the orignal one then, why th