Do I need lots of different divs or can I just adjust existing div?

Hi all,
I am creating pages which are quite similar but slightly different div sizes required.
First page is:
Overall size 960 px.
I have created a "leftdiv" 640 px wide and a "rightdiv" of 320 x wide (both are  id divs)
Next page is:
Overall size 960 px.
I now want a "leftdiv" 500 px wide and a "rightdiv" of 460 px wide.
Following page probably slightly different (it is to suit images from different suppliers products)
Do I have to create a new separate div id with an individual name tag for each page or is there a way I can adjust the div width for that page only without it affecting other divs of the same name on other pages.
I'm sure there must be a way that this can be done without using lots of different divs each time the width changes.
thanks again
Michael

If the <div> is basically the exact same div but slightly different on each page, you might want to create a number of classes in your CSS style sheet and then apply those classes as needed. Such as
.prod_500 {
width; 500px;
.prod_550 {
width; 550px;
.prod_600 {
width; 600px;
and when you id that <div> add a class
<div id="products" class=".prod_500">
That way you could use the same div (on different pages of course) and give it a class to fit that page. Div id is reusable (but not on the same page) as are the classes.
Best wishes,
Adninjastrator

Similar Messages

  • How can I get my itunes onto my new laptop? Do I need to download itunes again or can I just copy it? My ipod classic has since been soaked in water and does not work so I cannot copy from there. Can anyone help?

    How can I get my itunes onto my new laptop? Do I need to download itunes again or can I just copy it? My ipod classic has since been soaked in water and does not work so I cannot copy from there. Can anyone help?

    You should copy everything from your old comptuer to your new one.

  • How do I add "find my I touch" for my kids accounts? Do I need to make different accounts?  Can I do it thru mine? So I know where they are at?

    Just trying to make life a little easier with 2 I phones 2 I touch and 2 iPads
    Please help

    I've been scratching my head over this as well, and found a solution!
    Make sure that iCloud is turned on for your Mac -
    Choose System Preferences from the Apple menu on your Mac. Click iCloud, enter your Apple ID if necessary, and select "Find My Mac".
    Hope this helps!

  • To switch PCs, do I need the original install disk or can I just use the upgrade download and s/n?

    I need to download my Acrobat 9 Pro on a new PC, but I cannot find my original product installation disk for Acrobat 8.   I have my serial # and the download link for the Acrobat Pro 9 upgrade.   Do I need to install Acrobat 8 first, and then download the upgrade?  How would I do that without the installation disk?    

    Welcome to the Apple Support Communities
    You say that you have Mac OS X 10.7.5, so if it came preinstalled, see that you can't reinstall it because it's registered to the old owner. Call Apple to get replacement DVDs
    If you want, you can upgrade to Mountain Lion. See if your computer is supported > http://www.apple.com/osx/specs Open App Store and purchase Mountain Lion

  • Do I need and app to eprint or can I just print from my e-mail to the printer?cc=us

    I can not eprint to my printer and the services are turned on. Everytime I try to send an email to the printer to print it come back with a failure notice. Can someone please help?

    Make sure you are only entering one email address in the "TO" and nothing in the CC or BCC 
    If you go to your ePrint Center and enable the security feature, you can add your email address.
    Next time you send a job to print it will send you back more detailed information as to why it is not printing.
    Although I am not affiliated with HP, please give Kudos if I've answered your question

  • Do unlocked iphone 5's need sim cards to work or can you just plug it into itunes and start using it without a sim card

    please help

    so if i were to get an unlocked iphone it wouldnt turn on like an ipod if i plugged it into itunes?

  • I want to copy edited files to a second computer, do I need to export the catalog or can I just copy

    I find that I edit files on my laptop but I want the files, with their edits to reside on my desktop computer also.
    I had been exporting the folder as a Catalog, but can't think of shy I can't just copy the folder with both the RAW and XMP files and import the folder on the Desktop PC. This option seems to work just as well as the catalog option.
    Any reason I should choose one way over the other?
    Using Lightroom 4.2
    Thanks
    Kelvin

    I'm sure this isn't a complete list, but here goes:
    flags
    virtual copies
    collection membership
    stacks
    edit history

  • With emojis do u need to get an app or can you just go straight to settings?

    ?

    The emoji keyboard is built into iOS now. Settings>General>Keyboard>International Keyboard>Add New Keyboard. To use it, tap the globe in the bottom right of the keyboard when you're typing. Just keep in mind that sending emoji can cause problems with texts on phones that don't support them.

  • Need help with different link styles on same page

    Hello,
    I'm using Dreamweaver CS4 on a PC.
    I have searched through a lot of posts over the last couple of days, I've tried the projectseven.com tutorial, google'd, etc. but still can't figure it out.....
    All I want to do is apply a different link colour to some links in the footer of my page. Elsewhere through the site I have set the colour to blue (for the link) and orange (for the hover) - for the footer links I want the link to be white and the hover colour to stay orange.
    The problem with the projectseven tutorial is that it doesn't seem to apply to CS4 and I kept getting error messages when trying to apply a new CSS rule - there's no Class|Tag|Advanced options as per the instructions ....
    I've copied the code of my page to this. The links which I want to apply a different style to are contained in the Div Tag called "Footer-Navigation-Bar" .
    Could someone please give me some instructions or point me in the right direction please??
    Many thanks,
    Vickie
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- saved from url=(0014)about:internet -->
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Subscribe to Family Australia - it's free!</title>
    <!-- TemplateEndEditable -->
    <link href="../family-subscribe.css" rel="stylesheet" type="text/css" />
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <style type="text/css">
    <!--
    a:link {
    color: #30C;
    text-decoration: none;
    a:hover {
    color: #F30;
    text-decoration: none;
    a:visited {
    text-decoration: none;
    a:active {
    text-decoration: none;
    -->
    </style></head>
    <body>
    <div id="container">
      <div id="banner">
        <ul id="family-subscribe-menu" class="MenuBarHorizontal">
          <li><a href="../index.html">Home</a>      </li>
          <li><a href="../subscribe.html">Subscribe</a></li>
          <li><a href="../family-advertise.html">Advertise</a>      </li>
          <li><a href="../family-articles.html">Articles</a></li>
    <li><a href="../family-sign-in.html">Issues</a></li>
          <li><a href="../family-contribute.html">Contribute</a></li>
    <li><a href="../family-contact.html">Contact</a></li>
        </ul>
    </div>
        <div id="sidebar"><a href="../family-sign-in.html"><img src="../images/launch-issue.jpg" alt="launch-issue" width="220" height="380" hspace="4" /></a>
          <div id="sidebar-image2">
            <p><img src="../images/Sleeping bag for web.jpg" width="220" height="151" alt="sleeping-bag" /></p>
            <p>Kozy Koala™ Pillow Sleeper is ideal for those  summer nights when the kids want to sleep out or when you go camping. The  all-in-one pillow camper consists of …. [MORE]</p>
          </div>
          <div id="sidebar-image3">
            <p><img src="../images/solrx for web.jpg" width="220" height="164" alt="sunscreen" /></p>
          SolRX® Sunscreens are very sweat and water  resistant – ideal for anyone who leads an active outdoor lifestyle … whether  you’re in the water or not! [MORE]</div>
      </div>
        <!-- TemplateBeginEditable name="main-content-region" -->
        <div id="main-content">main content</div>
        <!-- TemplateEndEditable -->
      <div id="footer">
    <div id="footer-navigation-bar"><a href="../family-about.html">about</a> | <a href="../family-advertise.html">advertise</a> | <a href="../family-contribute.html">contribute</a> | <a href="../family-contact.html">contact</a> | <a href="../family-unsubscribe.html">unsubscribe</a></div>
          <div id="footer-text">Family Australia | ABN 33150685385 | For all advertising enquiries please contact <a href="mailto:[email protected]">[email protected]</a><br />
    Copyright © 2010 Family Australia. All rights reserved.
    </div>
      </div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("family-subscribe-menu", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

    The links which I want to apply a different style to are contained in the Div Tag called "Footer-Navigation-Bar" .
    a:link {
    color: #30C;
    text-decoration: none;
    a:hover {
    color: #F30;
    text-decoration: none;
    a:visited {
    text-decoration: none;
    a:active {
    text-decoration: none;
    Hello
    You can see above the CSS that applies to your links.  If you have links that you want to style in a diferent way, just write the rule Like this:
    #Footer-Navigation-Bar a:link {
    color: red;
    text-decoration: none;
    Or whatever.  There are other ways but this will do you as you already have those links you want styled differently in a div with its own ID.  The new rule should come after the other rules in your CSS I think to make sure of the cascade although thinking about it,  there's something called specificity in CSS which means that the rule that I suggest will win out anyway.  All that you are doing in my suggestion is selecting the a:link that is a descendant of an element with that particular ID.
    I hope that helps.  I'm a bit of a novice and might have got a bit jumbled with the cascade/specficity thing but hey, I reckon that will get you where you want to go....
    Martin.

  • I am running out of memory on my hard drive and need to delete files. How can I see all the files/applications on my hard drive so I can see what is taking up a lot of room?

    I am running out of memory on my hard drive and need to delete files. How can I see all the files/applications on my hard drive so I can see what is taking up a lot of room?
    Thanks!
    David

    Either of these should help.
    http://grandperspectiv.sourceforge.net/
    http://www.whatsizemac.com/
    Or search 'disk size' in the App Store.
    Be carefull with what you delete & have a backup BEFORE you start, you may also want to reboot to try to free any memory that may have been written to disk.

  • Text field keeps repopulating same text and I need to enter different text in each field

    I am filling out a downloaded, fillable form. In one section, it asks me to list different items. When I enter text into the first field, it automatically enters the same text in the remaining fields. I need to enter different items in each field. Please help!

    There is nothing you can do. The fields were improperly set by the creator. To fix this you need Acrobat not Reader.

  • I have just brought 2 mini's for my boys for xmas.  1. can I connect them both to my existing Itunes account or do I need to set up something different. and 2. can they be used on their dads account as well as mine, or only one?

    I have just brought 2 mini's for my boys for xmas.  1. can I connect them both to my existing Itunes account or do I need to set up something different. and 2. can they be used on their dads account as well as mine, or only one?

    You can set them up with your Apple ID if you want to. You can also set them up with their dad's Apple ID. Depending on how old the boys are, you can even let then have their own Apple ID's. The one thing that you don't want to do is have them use more than one Apple ID on their iPads.
    If you want to be able to share purchased content, then setting them up with either your ID or your husband's (?) ID would be the way to go. If the boys share an ID with one of you, they can download content that you have already purchased without having to pay for it again.
    If you and have the financial wherewithal to allow them to purchase their own individual content, I would recommend letting them have their own Apple ID. This way, as they grow older and eventually move on, they will have their own accounts, their own purchases .... No ties needed to your ID or to dad's ID. FaceTime and Messages will be a little easier to set up if they have their own ID's and they can have their own iCloud accounts as well. However, they must be 13 years old in order to have an Apple ID and iTunes account. If they are under 13, then it's a no brainer you will have to use yours or their father's ID.
    Whatever you decide to do, just don't switch from one ID to another ID on the iPads. That gets confusing and they could end up locking themselves out of one of the ID's for 90 days if they download a past purchase using a different ID.

  • Putting lots of different pictures into different pdf-files together

    hi there,
    my boss gave me a tricky task and I dont know how to solve the problem without some help. It's about putting lots of different pictures into different pdf-files together. May be you have some ideas how to succeed. Please excuse my german-laced english.
    My task is to merge (or put together) about 4-5 pictures into one pdf. the problem: i have 4.000 pictures. the advantage: the pictures that i have to merge are named pretty similar, it looks like:
    ab_pictures 1
    ab_pictures 2
    ab_pictures 3
    ab_pictures 4
    ab_pictures 5
    cd_pictures 1
    cd_pictures 2
    cd_pictures 3
    cd_pictures 4
    ef_pictu...etc.
    i have to merge ab-picuteres 1-5 to one pdf called "ab_pictures 1", cd_pictures to one pdf called "cd_pictures 1"...
    because there are so many picture-groups that i have to merge i was wondering if there is a possibility to automate this task by just telling the programm once what it has to, so it can do it without me sitting next to it, telling it each time what it should do next.
    this would safe me a lot (!) of time. Here at my working place there is adobe acrobat reader 9 running, there is also distiller available (I dont know what this appclication is used for).
    my question: is it possible to "programm" acrobat that i could do such a task automatically? Or do I have to buy other programms (may be a database-programm or something like that) to be able to it?
    thank you very much in advance for your expertise and please excuse my german-laced english.
    regards,
    scoutee1

    Two locations, for Acrobat Scripting, that may be helpful.
    #1. Acrobat Scripting here in the Adobe Forums.
    http://forums.adobe.com/community/acrobat/acrobat_scripting
    #2. Acrobat User Community's JavaScript Forum.
    http://acrobatusers.com/topics/javascript
    edit: above link is to AUC Learning Center content.
    The forum is at:
    http://acrobatusers.com/forums/acrobat-discussions-topic/javascript
    Be well...
    Message was edited by: CtDave

  • I need lots of USB ports with New Mac Pro, now what?

    because I'm in the audio business I needs lot of USB ports with my Mac Pro. On my current 2008 machine, that's not really an issue, with 5 ports on teh MP itself and I installed some USB hubs over PCIe that give me a total of 13 port. I'm not really sure what is the best way to get that amount on the new MP.
    Oh, and I really like the stability of my current set up. Before I went with an external USB Hub that always gave me headaches with ports not being recognized.

    The only two things I found so far are:
    a/ going back to the external USB hubs, which I find very frustrating to work with, because instable with connection and I would need to add some interface to go from USB to TB (which are also rather expensive at the moment)
    b/ use some external PCIe enclosures that are really expensive.
    So I havent really found the right solution for my situation. Which makes me hesitant to migrate to new MP at the moment.

  • TS2551 When I open iphoto says I have 4500 pics I haven 't downloaded that many. When I looked I have pic of ebay home page facebook a lot of different web sites I've visited How do I stop this and why is this happening.

    When I open iphoto says I have 4500 pics I haven 't downloaded that many. When I looked I have pic of ebay home page facebook a lot of different web sites I've visited How do I stop this and why is this happening.

    This happens when someone drags the HD or a system folder icon to the iPhoto Window by accident. Solution: restore from back up created before this occurred.
    Regards
    TD

Maybe you are looking for

  • Table in which if I put the delivery number ..I should get the HEADER TEXT

    Dear Members, I am checking for a table in which if I put the delivery number ..I should get the HEADER TEXT. Does such table exists or a Z report shoudl be created for this kind of setup. Regards,

  • Exclude "*" in Like operator

    Hi All, I am trying to use like operator for an output data which has "*" appended at the end. For example, following is the Place_ID which i have data in a table 12190101* 12349021 12347284 12598992* When i provide search criteria as "1234" in my ap

  • Search Query Web Part thumbnail image link broken

    Hello, I have 4 farms spread across the world and I want to pull news from Farm 1 (headquarters) into farm 2, 3, and 4. In SharePoint 2007 I did this with content deployment by pushing only the news site out to the other 3 farms.  However, from readi

  • Problems with Kwin 4.7

    I updated to kde 4.7 and kwin just goes wrong. Look at this: I use Nvidia GeForceFX 5200 and Nvidia binary driver version 173.14.30 Anyone who can help me?

  • Can I add a save and return button to my online questionnaires?

    Hi,  I've created a rather long questionnaire in forms central, utilising skip logic rules to allow those completing the forms to ignore sections that do not apply to them.  However, some users have asked whether it is possible to save and return to