Ask a Question related to HTML & CSS, Design and Development.

  1. #1

    Default Quick CSS question

    Hi, I have a css file that I used when building my template.
    Now that I'm building additional pages from the template, do I edit the same
    css file or do I need a new one. Will it work if I just give the celld in
    the new page a unique id.

    Thanks
    David


    David Guest

  2. Similar Questions and Discussions

    1. very quick question
      In my database a field is designated as 0 or -1 . When i make my form how do i set up the drop down menu so that the user chooses yes or no and...
    2. quick MX question....
      how do you get rid of that window on the right where it says 'color swatches', 'components', etc.. it really bothers me, it makes the working area...
    3. Quick question
      if you want to select top 100 records, you will use SELECT TOP 100 * FROM tableName Is there anyone knows how to find bottom 100 records? ...
    4. A Quick Question
      Does anyone know if it is possible to create a Flash movie that has the ability to let the user click on a button to begin the installation of a...
    5. QUICK SSA QUESTION
      AIXers, I'm looking for a quicker way to determine the physical locations of ssa drives in a SSA drawer w/o having to use diag/ssa service aides...
  3. #2

    Default Re: Quick CSS question

    You just edit the same CSS file as the template will make the CSS link in
    the child documents relative to it's location.

    Not sure what you mean by: "Will it work if I just give the celld in the new
    page a unique id."

    HTH

    --
    << Tim >>
    --

    "David" <dross@si.rr.com> wrote in message
    news:bengiv$f8o$1@forums.macromedia.com...
    | Hi, I have a css file that I used when building my template.
    | Now that I'm building additional pages from the template, do I edit the
    same
    | css file or do I need a new one. Will it work if I just give the celld in
    | the new page a unique id.
    |
    | Thanks
    | David
    |
    |


    Tim L Guest

  4. #3

    Default Quick CSS question

    I'm trying to stack a few DIV items on my page:

    [url]http://www.dorseygraphics.com/toolbar_1a/[/url]

    And they seem to be overlapping.

    Here's a link to the css:

    [url]http://www.dorseygraphics.com/css/styles.css[/url]

    I just want my 3 DIV layers to stack, in stead of overlap. Please help if
    you can.

    Thanks,

    --------------------S:confused;

    spdorsey Guest

  5. #4

    Default Re: Quick CSS question

    If you want them to stack, then just put them one after the other in the
    code, and don't use any positioning on them at all.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "spdorsey" <webforumsuser@macromedia.com> wrote in message
    news:dj9299$h2h$1@forums.macromedia.com...
    > I'm trying to stack a few DIV items on my page:
    >
    > [url]http://www.dorseygraphics.com/toolbar_1a/[/url]
    >
    > And they seem to be overlapping.
    >
    > Here's a link to the css:
    >
    > [url]http://www.dorseygraphics.com/css/styles.css[/url]
    >
    > I just want my 3 DIV layers to stack, in stead of overlap. Please help
    > if
    > you can.
    >
    > Thanks,
    >
    > --------------------S:confused;
    >

    Murray *TMM* Guest

  6. #5

    Default Re: Quick CSS question

    Here's the proper link for the CSS

    [url]http://www.dorseygraphics.com/toolbar_1a/css/styles.css[/url]
    spdorsey Guest

  7. #6

    Default Re: Quick CSS question

    And a given ID must be unique on the page. You have 3 divs named
    "controlsection".

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "spdorsey" <webforumsuser@macromedia.com> wrote in message
    news:dj95a2$l3t$1@forums.macromedia.com...
    > Here's the proper link for the CSS
    >
    > [url]http://www.dorseygraphics.com/toolbar_1a/css/styles.css[/url]

    Murray *TMM* Guest

  8. #7

    Default Re: Quick CSS question

    The reason they all use the same div name is because they all need to have the same formatting, so there's no reason to rewrite the code for new sections.


    spdorsey Guest

  9. #8

    Default Re: Quick CSS question

    It's still not working. I altered the code to contain no positioning info, and
    I even created CSS code for each section in stead of recycling it for all 3
    sections. I'm really confused This is an easy thing to do, right?

    -----S

    spdorsey Guest

  10. #9

    Default Re: Quick CSS question

    You can't do this. If you want them to have the same formatting do it with
    a class not an ID. You cannot have more than one element with the same id
    on any given page.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "spdorsey" <webforumsuser@macromedia.com> wrote in message
    news:dj9aic$rio$1@forums.macromedia.com...
    > The reason they all use the same div name is because they all need to have
    > the same formatting, so there's no reason to rewrite the code for new
    > sections.
    >
    >

    Murray *TMM* Guest

  11. #10

    Default Re: Quick CSS question

    <body>
    <div>This is div one.</div>
    <div>This is div two.</div>
    <div>This is div three.</div>
    </body>

    These three divs will be stacked no matter what else is on the page.

    Show me your code, please.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "spdorsey" <webforumsuser@macromedia.com> wrote in message
    news:dj9b37$s6o$1@forums.macromedia.com...
    > It's still not working. I altered the code to contain no positioning info,
    > and
    > I even created CSS code for each section in stead of recycling it for all
    > 3
    > sections. I'm really confused This is an easy thing to do, right?
    >
    > -----S
    >

    Murray *TMM* Guest

  12. #11

    Default Re: Quick CSS question

    [url]http://www.dorseygraphics.com/toolbar_1a/[/url]


    Here's a link to the css:

    [url]http://www.dorseygraphics.com/toolbar_1a/css/styles.css[/url]
    spdorsey Guest

  13. #12

    Default Re: Quick CSS question

    You cannot have three elements with the same ID on the same page.

    Change all instance of this -

    #controlSection {

    to this -

    ..controlSection {

    (note the leading period)

    and this -

    <div id="controlSection">

    to this -

    <div class="controlSection">

    And now at least your markup will be valid.

    What is it you expect to see when you say it's not working?

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "spdorsey" <webforumsuser@macromedia.com> wrote in message
    news:dj9eu8$3p4$1@forums.macromedia.com...
    > [url]http://www.dorseygraphics.com/toolbar_1a/[/url]
    >
    >
    > Here's a link to the css:
    >
    > [url]http://www.dorseygraphics.com/toolbar_1a/css/styles.css[/url]

    Murray *TMM* Guest

  14. #13

    Default Re: Quick CSS question

    Well,

    I made the changes you suggested. I'm still learning about CSS, and I forgot
    that you can only have one #style on a page at the same time.

    So i changed the # to a . and I got no changes, really. The elements are
    still drawing poorly. They look wrong in Safari & Firefox, and they look REALLY
    wrong in MSIE Windows (who cared what it looks like on MSIE Mac, really - but
    it looks fine there

    There is space between headers on the page. I can fix this by using the
    negative margin tags which appear in the CSS code (they are commented out right
    now), but that is not a clean way to code, right? The clean way would be to get
    rid of the cause of the gaps.

    I'm totally lost on that front.

    By the way, thanks for your help.

    --------------------S


    [url]http://www.dorseygraphics.com/toolbar_1a[/url]


    CSS:

    [url]http://www.dorseygraphics.com/toolbar_1a/css/styles.css[/url]




    spdorsey Guest

  15. #14

    Default Re: Quick CSS question

    Consider using this CSS -

    BODY {
    MARGIN: 0;
    padding:0;
    }
    A:link, a:visited, a:hover, a:active {
    COLOR: #333333
    }
    #container {
    MARGIN-TOP: 10px;
    FLOAT: right;
    WIDTH: 130px;
    MARGIN-RIGHT: 10px;
    padding:0;
    }
    #container img.head {
    display:block;
    }
    ..controlSection {
    BORDER: #8a8a8a 1px solid;
    BORDER-top: none;
    FONT-SIZE: 10px;
    TEXT-INDENT: 4px;
    FONT-FAMILY: Arial, Helvetica, sans-serif;
    BACKGROUND-COLOR: #ebebeb;
    margin-bottom:6px;
    }
    ..controlSection IMG {
    PADDING-LEFT: 3px
    }
    ..controlSection UL {
    LIST-STYLE-TYPE: none; /* GWS */
    margin:0;
    padding:0;
    }
    ..controlSection li {
    margin:0;
    padding:0;
    }
    ..controlSection UL LI A {

    }
    ..controlSection A {
    DISPLAY: block;
    COLOR: #333333;
    TEXT-DECORATION: none;
    width:128px;
    margin:0;
    padding:0;
    }
    ..controlSection A:hover {
    BACKGROUND-COLOR: #cfcfcf;
    }



    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "spdorsey" <webforumsuser@macromedia.com> wrote in message
    news:djdjjo$j8s$1@forums.macromedia.com...
    > Well,
    >
    > I made the changes you suggested. I'm still learning about CSS, and I
    > forgot
    > that you can only have one #style on a page at the same time.
    >
    > So i changed the # to a . and I got no changes, really. The elements are
    > still drawing poorly. They look wrong in Safari & Firefox, and they look
    > REALLY
    > wrong in MSIE Windows (who cared what it looks like on MSIE Mac, really -
    > but
    > it looks fine there
    >
    > There is space between headers on the page. I can fix this by using the
    > negative margin tags which appear in the CSS code (they are commented out
    > right
    > now), but that is not a clean way to code, right? The clean way would be
    > to get
    > rid of the cause of the gaps.
    >
    > I'm totally lost on that front.
    >
    > By the way, thanks for your help.
    >
    > --------------------S
    >
    >
    > [url]http://www.dorseygraphics.com/toolbar_1a[/url]
    >
    >
    > CSS:
    >
    > [url]http://www.dorseygraphics.com/toolbar_1a/css/styles.css[/url]
    >
    >
    >
    >

    Murray *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139