Center Backgroundimge II

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Center Backgroundimge II

    I fought it was fixed, but it ain't.

    I had problems with centering the background image and user told me to use CSS:

    No, not as a page background image. It's very easy in CSS.

    -Change this -

    </head>

    to this -

    <style type="text/css">
    <!--
    body { background-image:url(whatever.jpg); background-position:center top; }
    -->
    </style>
    </head>

    on each page, and you have it.

    Alternatively, you could put this into a plain text file -

    body { background-image:url(whatever.jpg); background-position:center top; }

    (make sure your pathing is correct)

    and save it as "whatever.css", and then you would make each page like this -

    <link rel="stylesheet" type="text/css" media="screen" href="whatever.css">

    Either way works, but the latter is more flexible since a single change to
    that file will now reflect in every page that uses it.

    but when I do as he says, the backgroundimage totaly dissaperes.
    What should I do?

    Studio52 Guest

  2. Similar Questions and Discussions

    1. How to center a layer ?
      Hello friends.. I have created a pop up menu with a tool that creates de code in Javascript. The I have setted it on a layer (if I do not do it, the...
    2. is it possible to center a text?
      Is it possible to center a text in flash? I have already expose the problem in other forum and I discover we can use css. The problem is those css...
    3. <center>
      Is there a way to use the html code fragment to insert <center> </center> to center the page. It's a pain to redo it every time you update all the...
    4. Center a div tag
      Hi The following div tag displays with a border. However, I want it to display center on the page. Any ideas welcome thanks jim <div...
    5. How is KEH Repair center !!
      "Steve Merrick" <steve@keh.com> wrote in message news:3f1eba74.0306251424.4f80088f@posting.google.com......
  3. #2

    Default Re: Center Backgroundimge II

    > What should I do?

    Show us how you tried to do this on your page. The method works - your
    implementation may not.


    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (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
    ==================


    "Studio52" <webforumsuser@macromedia.com> wrote in message
    news:e8ii4p$lgi$1@forums.macromedia.com...
    >I fought it was fixed, but it ain't.
    >
    > I had problems with centering the background image and user told me to use
    > CSS:
    >

    Murray *ACE* Guest

  4. #3

    Default Re: Center Backgroundimge II

    I haven't uploaded it yet,
    but heres the url to my old site with an un-centred backgroundimage
    [url]http://www.studiofiftytwo.com[/url]
    Studio52 Guest

Posting Permissions

  • You may not post new threads
  • You may 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