Filling out empty space with a div

http://www.elliotnewman.com/index/test5.html
Is there a way to automatically fill the space between the two divs: "news" and "basket" with the div "spacer" ? "news" is floating to the left, and "basket" is floating to the right, so I just want the "spacer" to fill this gap.

Forgive for me for saying this, but your code suffers from a common newbie syndrome called "division-itis"  a tendency to wrap every single page element inside its own division.  This is counter-productive.  You shouldn't use ID except for top level elements such as #header, #navbar, #content, #sidebar, #footer.  Everything else should fit inside one of those divisions.
IMO your menu would be so much better if you simplified it and used an unordered list instead of all those divisions.
<ul id="navbar">
<li><a href="#">HOME</a></li>
<li><a href="#">ABOUT</a></li>
<li><a href="#">GALLERY</a></li>
<li><a href="#">VISUAL EFFECTS</a></li>
<li><a href="#">PRINT SALES</a></li>
<li><a href="#">NEWS</a></li>
<li><a href="#">CONTACT</a> </li>
</ul>
Then simply style your list to float:left and remove bullets like so.
/* BEGIN HORIZONTAL DROP-MENU */
#navbar ul{
margin: 0;
padding:0;
#navbar li {
list-style: none;
font-size: 12px;
float: left;
/**LINK STYLES**/
#navbar li a {text-decoration:none; display:block;}
#navbar li a:link {color: #CCC}
#navbar li a:hover,
#navbar li a:active,
#navbar li a:focus {color: #FFF; background: #333;}
You can see a working example here (look at the code to see how it comes together)
http://alt-web.com/DEMOS/CSS2-Horiz-Drop-Menu.shtml
Hope this helps,
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
http://alt-web.com/
http://twitter.com/altweb

Similar Messages

  • Needed?  Option to Fill Empty Space with Podcasts When Synching to a Device

    Hello,
    With the new 32 GB capacity of the iPhone 4, I find that I have a lot of remaining space after selecting 10 latest unwatched podcasts. On the other hand, if I select all unwatched podcasts to download, I get a warning that I have exceeded the capacity of the device.
    It would be nice if, in iTunes, the following options existed:
    1. Fill the empty space with selected podcasts
    2. Select 20 unwatched videos from the dropdown (in addition to the other existing options)
    3. Enter the number of podcasts the user wants to download for all podcasts.
    4. Enter the number of each type of podcast the user wants to download.
    There is an option to fill unused space with music, but no similar option for podcasts.
    I have submitted to http://www.apple.com/feedback, but I wonder if anyone else has this issue?

    AC Adam wrote:
    The only way I can think of to work around this might be to dump a lot of photos on the phone when syncing such that they take up an extra amount of space, then manually delete them from the phone interface once I get done. 
    That or add an App or Apps to take up the space.
    I would think there is more eloquent way to do this with through either iTunes or the iPhone.
    Nope.

  • ? How do I delete large blocks of empty space with Adobe Acrobat Pro?

    How do I delete large blocks of empty space with Adobe Acrobat Pro?

    How can you delete "empty space"? If you mean that you want to delete lines,
    like in Word, so that the text afterwards will go "up the page", then you're
    out of luck. You should do that in the original file, and then re-create the
    PDF.

  • Is there a way to create a PDF form that ANYONE can fill out and SAVE with their content?

    Is there a way to create a PDF form that ANYONE can fill out and SAVE with their content? By anyone, I mean someone who can download and use the free Adobe Reader, on either a Mac or PC. I have Acrobat Pro, and would like to be able to create forms that can not only be filled out and printed, but saved and emailed, which is not an option with the forms I have created to date. They can be filled out, but not saved, with Adobe Reader.
    TIA,
    Nancy

    To do what Dave indicated you need to do, it depends on what version of Acrobat you have:
    Acrobat 8: Advanced > Enable Usage Rights in Adobe Reader
    Acrobat 9: Advanced > Extend Features in Adobe Reader
    Acrobat 10: File > Save As > Reader Extended PDF > Enable Additional Features
    Acrobat 11: File > Save as Other > Reader Extended PDF > Enable More Tools (includes form fill-in & save)
    I wonder what it will be next time?

  • Filling a rectangle space with a photo image in an applet

    I'm creating a web page that will display an image of a persons wall and I want to be able to use the mouse to draw a rectangle on the image of the wall and fill the space with a selected photo image.
    I have found out that you can use the MousePress and MouseDrag events to draw a rectangle and "paint" the rectangle in a componant inside the applet. But I'm not sure how to fill the rectangle with an image instead of a color. Can someone tell me if there is an AWT or Swing method that can do this?
    I was thinking of filling the applet window with a label component and then filling it with the wall image. Then some how using the coordinates given from the drag event to creat a new label component and filling it with the photo image. Hope I'm on the right path. Thanks for all the help.

    Great thanks, I looked it up in the docs and I found one that will work for me but I'm not sure how to use the arguements. It's the drawImage method that uses the scalebility. This would work perfect seeing as though the image to be posted will be various sizes. Can any one explain this method in more detail for me. Thanks again.

  • I Can't Erase the Empty Space with Disk Utility

    It always gets stuck. Last time i tried it, it went all the way almost to the end of the fill bar. then it got stuck.
    But even when i did manage to do it using the FASTEST option which just writes ZEROS over the free space 1 time..   I used DISK DRILL to see if it could recover data and yup..it was still recoverable.   Another thing i did was  fill my free disk space with big huge movie files.  And old stuff was still recoverable with Disk drill.
    But anyway why Disk Utility Erase Free Disk Space gets stuck? And also  why disk drill can still find files even after i empty free disk space or when i fill empty free disk space with new files?

    Drive Preparation
    1. Boot from your Tiger Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    4. After completion quit DU and return to the installer. Continue with Tiger installation.

  • How to create a PDF form which can be filled out and saved with change by end user

    I am using Acrobat 8.0 - Mac - and want to create a PDF with text form fields. Simple one page file. The end user needs to be able to fill out the text form fields and SAVE those changes. so far they can fill out the fields but can not save the file with changes.
    Thanks

    Sandee Cohen wrote:
    Phillip Jones said:
    After the uproar from Users about Standard being little more than Apple's Print to PDF; there hasn't been a Standard version for Mac since version 6. So many people were use the features in Acrobat 5  to create Forms that could be filled out by Reader. when the bought 6 Standard they were ready to hang the CEO of Adobe in effigy. When 7 came out is was Pro only.
    I'm confused.
    The current version of Acrobat comes in Standard, Pro, and Extended Pro versions. Only the Pro version is on the Mac. But that doesn't mean that the Mac community wouldn't have wanted the Standard version of Acrobat.
    The Standard version is hardly a mimic of Apple's Save to PDF. The most important features of Standard is to enable Rights in Reader as well as add comments, form fields. etc.
    The only thing that Standard does do are the pre-press and production features of Pro.
    However, given the difference in price ($450 vs. $300) there is ample reason for business on the Mac OS to buy Standard--if they could buy it.
    I didn't say PC users.
    I should have said Mac users. Because the Print system and sytem by which Mac users view anything is based on the PDF engine. The Mac sytem can do anything Standard Standrd could do. although in order to placate Adobe the pdf engine used is a version or two behind. If the Mac OS could do everything Acrobat could do there would be no reason for Adobe to provide Acrobat Or Reader for Mac.
    And you basing your assumption of what Standard can do a PC. Standard on Mac is basically Mac's Print to PDF  wrapped in an Adobe Package. It shad no ability to confer rights to reader (that didn't come to Acrobat Mac until Version 8) and was unable to to create forms. The current version of Acrobat PC comes as Standard, Pro, And extended. There never has and never will be an extended pro version for Mac (that adds the ability to create XML based forms) They don't have the interest. To adobe is little more than a Play toy. Because Windows has so much clout They can dictate what they want. Apple not so much. One advantage Mac does have is that Forms creator is built in. on PC its an adon (it free but an addon or was).
    Now back in OS 9 days and Acrobat 5.x Acrobat for Mac and PC were equal. except to have the print press features Mac users had to pay an addition $200.00.  (It exactly as you described in your last sentence - except Acrobat 5.x without the printpress and The Acrobat 5 without Print press was $299.00 and $499.00 with Print press.) I know I've used Acrobat since version 3.

  • Filling out available space in JScrollPane

    Hello all,
    Is there a way to inform a JScrollPane that it's viewport's component should fill out the entire area of the viewport? I have a scroll pane whose viewport is a JPanel with a BoxLayout. The contents of the JPanel will change size depending on certain events. However, the JPanel at first is not very wide (it's components have a preferred size of 100), so it does not fill out the width of the viewport and is also displayed in the center of the scroll pane. Is there a way to have the JPanel fill out the entire viewport, or at least have it displayed on the left (I have set both the JViewport and JPanel's alignmentX values to 0.0 but it's still in the center)?
    Thank you all for your time.

    It looks like you have an intermediate panel between the viewport and the JPanel with the BoxLayout. In other words, the view is not the BoxLayout JPanel, but the intermediate one. A newly constructed JPanel will have FlowLayout and position the component top centered as displayed in your picture.
    I wasn't lying when I said the JPanel should be the same size as the viewport. That's the default behavior. Example,
    import javax.swing.*;
    public class Demo {
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
        private static void createAndShowGUI() {
            try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            } catch (Exception e) {
                e.printStackTrace();
            String lines = "------------\n" +
                           "------------\n" +
                           "------------\n" +
                           "------------\n" +
                           "------------\n";
            JFrame frame = new JFrame();
            //Box musicPanel = Box.createVerticalBox();
            JPanel musicPanel = new JPanel();
            musicPanel.setBorder(BorderFactory.createEtchedBorder());
            musicPanel.setLayout(new BoxLayout(musicPanel,BoxLayout.PAGE_AXIS));
            Box tempo = Box.createHorizontalBox();
            tempo.add(new JLabel("Temp = 120"));
            tempo.add(new JButton("Change Tempo"));
            musicPanel.add(tempo);
            musicPanel.add(new JLabel("Tack 0: tuba"));
            musicPanel.add(new JTextArea(lines));
            musicPanel.add(new JLabel("Track 1: trombone"));
            musicPanel.add(new JTextArea(lines));
            musicPanel.add(new JLabel("Track 2: C_trumpet"));
            musicPanel.add(new JTextArea(lines));
            musicPanel.add(new JLabel("Track3: English_horn"));
            leftAlign(musicPanel);
            frame.setContentPane(new JScrollPane(musicPanel));
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.setVisible(true);
        private static void leftAlign(JComponent parent) {
            parent.setAlignmentX(JComponent.LEFT_ALIGNMENT);
            for(java.awt.Component c : parent.getComponents()) {
                leftAlign((JComponent) c);
    } If you change
    frame.setContentPane(new JScrollPane(musicPanel)); to
    JPanel intermediate = new JPanel();
    intermediate.add(musicPanel);
    frame.setContentPane(new JScrollPane(intermediate)); in the above code, then you'll get something that looks remarkably like the picture you provided.

  • Running out of Space with Final Cut Pro X 10.1.1

    I have a 1 TG external hard drive that I have been using for the FCPX Library.
    I check the properties and it is using 657.72GB of space. I have deleted all movies, files, music with on FCPX. I clearned the trash can and restarted my system and FCP Library file is still showing 657.72GB being used. I have a blank project FCP will not let me delete because it says you have to have at least one.
    Has anyone else run into this problem. I am running out of space to do my video's and this is really annoying.
    I really appreciate your help

    You deleted all your movies? How did you do that? And what do you mean by movies? Do you mean the clips that you imported into FCP? When you imported, was it from a camera's memory card or from your computer? And do the clips exist anywhere else on your computer?
    Sorry about all the questions, but just trying ensure that there are no misunderstandings due to terminology issues that might lead to problematic advice. 
    Russ

  • Filling out PDF forms with black text in preview

    I am filling out my 1040 using apple preview and when I type something in a field, it is in dark blue font. How do I change that to black font?

    http://www.graniteschools.org/C13/Professional%20Growth%20and%20Evalua/Document% 20Library/SEWE20050602.pdf

  • In filling out a form with a list of names, is there a way to sort it, such as an alpha sort?

    Is there a way to sort names in adobe?  Such as when filling out a form?
    Or should I just give up and do the industry standard and use excel?

    Reader cannot do what you want. Yes you can use Excel, Numbers, and a dozen other spreadsheets. Or you can use database software (I tend to use FileMaker Pro and FileMaker Go, but there are many other choices), you can also use Form software (which again is just a simple database).

  • Filling out online forms with java

    I wanted to create a program that will fill out a form on a website by running a java program. COuld anyone tell me what i would use to make the program fill in i guess a text feild and then select a radio button and submitting the results? I tried looking through books and online but i dont even know what im looking for really.

    Maybe look for browser plugin programming. Otherwise, I don't know how a Java application (as opposed to an Applet) could ever access an HTML page in a browser window.
    At least not without going native. On Win machines, you might use something like the Java-Com bridge to access the IE's API... if it provides one and its methods help you to do what you intend.

  • How to fill an empty cell with the value above

    Hello,
    Please help me on the following issue related to BEx query and it's output in BEx analyzer as well as on Web.
    I am trying to modify a query output where the empty cells are to be filled with the value in the above cell.
    e.g. there is a column for transaction number, and this transaction number is the same for three rows, so it turns out to be two empty cells and only appears as if the transaction number applies to the first row only.
    not sure how to paste screenshot or attach document but would love to provide more information if the above isn't suffice.
    Please advise on what and where to modify in BEx designer.
    Thank you for your help!

    Thanks a lot...yes, now it works in BEx Analyzer but for some reason doesn't work in the Web view.
    Any ideas why is that?
    Thanks again for your prompt help.
    Edited by: One Idea on Jan 15, 2009 12:17 AM

  • How to fill the left space with blank rows in jTable?

    I have a master/detail BC4J/JClient application. The jTable has space to display up to 10 detail records. If I currently have 3 detail records, I want to display the three and have 7 blank lines for additional input on the form. Any suggestions on the best way to handle this.
    I think it is a common requirement in an application with a jTable.
    Can anyone give a hint for me to handle that issue best?

    Adding 7 blank lines is impossible and if it was possible it is not the correct way to do what you need to do.
    The appropriate thing is to add a JUNavigatorBar to act on the detail table and by this you will be able to add new lines in the table if needed.
    One more important thing, take care to add your table to a scroller object that will enhance your table with the scrolling ability if you have more lines the table can display.
    hope it helps

  • Form filled out with colors, but when opened in adobe reader they are black

    I have filled out a form with custom colors used in the accesability settings, but when I save the document and open it adobe reader they filled in fonts are black.
    Is there a way to maintain the accesability colours when printing and opening in adobe reader ?

    Accessibility settings are a personal preference. They are set by each
    user (or, if you have Reader and Acrobat, in each one). Above all,
    they are very much NOT saved in a document, because each user needs to
    be able to set their own.
    Aandi Inston

Maybe you are looking for