Do this:

&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="UTF-8"&gt;
&lt;title&gt;Nick Passaro Designs&lt;/title&gt;
&lt;link href="index.css" rel="stylesheet" type="text/css"&gt;
&lt;/head&gt;

&lt;body&gt;
    &lt;div id="nav"&gt;
        &lt;a href="index.php"&gt;&lt;img src="assets/marklogo.jpg" width="150" height="97" border="0" alt="Nick Passaro Designs"&gt;&lt;/a&gt;
        &lt;p&gt;&lt;a href="portfolio.php"&gt;PORTFOLIO&lt;/a&gt; &amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&lt;a href="logos.php"&gt;LOGOS&lt;/a&gt; &amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&lt;a href="print.php"&gt;PRINT&lt;/a&gt; &amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&lt;a href="web.php"&gt;WEB DESIGN&lt;/a&gt; &amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&lt;a href="photography.php"&gt;PHOTOGRAPHY&lt;/a&gt; &amp;nbsp;&lt;/p&gt;
        &lt;p&gt;&lt;a href="contact.php"&gt;CONTACT&lt;/a&gt; &amp;nbsp;&lt;/p&gt;
    &lt;/div&gt;

    &lt;div id="wrapper"&gt;
        &lt;div id="main"&gt;
            ENTER CONTENT HERE
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;


CSS:

#wrapper{
    margin-left: 150px;
}


What you do is create a wrapper div around your main div and make that wrapper div have a left-margin of 150px so that it's side by side with the nav bar.  Now all your resizes inside the main div should be limited to within the wrapper.

how do i fixed divs from overlapping centered, static div on browser resize?
I have a folder containing 96 files that I want to rename. The problem is that each file name needs a unique change...not like adding a zero the front of each name or changing extensions.  It isn't practical to do a search and replace.
Here's a sample of the names I want to change:

newSEACODI-sww2320H-sww24_07A_CP.9_sww2320H_sww2403F.fsa
newSEACODI-sww2320H-sww24_07B_CP.10_sww2320H_sww2403F.fsa
newSEACODI-sww2320H-sww24_07C_CP.11_sww2320H_sww2403F.fsa
newSEACODI-sww2320H-sww24_07D_CP.12_sww2320H_sww2403F.fsa
newSEACODI-sww2320H-sww24_07E_R.1_sww2320H_sww2403F.fsa
newSEACODI-sww2320H-sww24_07F_R.3_sww2320H_sww2403F.fsa
newSEACODI-sww2320H-sww24_07G_R.4_sww2320H_sww2403F.fsa
newSEACODI-sww2320H-sww24_07H_R.5_sww2320H_sww2403F.fsa


I'd like to use perl to change the above names to the below names, respectively:

SEACODI_07A_A.2_sww2320H_2403F.fsa
SEACODI_07B_A.4_sww2320H_2403F.fsa
SEACODI_07C_H.1_sww2320H_2403F.fsa
SEACODI_07D_H.3_sww2320H_2403F.fsa
SEACODI_07E_H.6_sww2320H_2403F.fsa
SEACODI_07F_H.7_sww2320H_2403F.fsa
SEACODI_07G_Rb.4_sww2320H_2403F.fsa
SEACODI_07H_Rb.9_sww2320H_2403F.fsa


Can such a thing be done?  I have a vague idea that I might make a text file with a list of the new names and call that list @newnames.  I would make another array out of the current file names, and call it @oldnames.  I'd then do some kind of for loop where each element $i in @oldnames is replaced by the corresponding $i in @newnames.

I don't know how to make an array out of my current file names, though, and so I'm not sure if this vague idea is on the right track.  I keep my files with the messed-up names in a directory called 'oldnames'. The below is my attempt to make an array out of the file names in that directory:

#!/usr/bin/perl -w
use strict; use warnings;

my $dir = 'oldnames';
opendir ('oldnames', $dir) or die "cannot open dir $dir: $!";
my @file = readdir 'oldnames';
closedir 'oldnames';

print "@file\n";


The above didn't seem to do anything. I'm lost. Help?
