CSS background to multiline heading

Hi all, I am trying to get a background colour behind the text of a heading by CSS. Sometimes it is a single line of text, which works fine, but as soon as it wraps, the background spreads right across the container it's in.
How can I get a colour block to sit behind the heading only allowing for a 5px padding on multi line heading.
Here is an example:
http://news.discovery.com
Notice on the middle image there is a heading (currently the walking dead) doing pretty much what I need, but here I notice it is broken down into a span per word. Is this really how I have to do it, and if so, how do you think they managed to break each word into a span?
Thanks.

Here you go:
http://www.showmetransport.com/inc-HomePagePanel.php
It is responsive, so if you collapse the page, you see the effect of the text wrapping and how it suddenly switches from sitting behind the text on a single line to becoming a full width panel on  multi lines.
There is already a version in place on the homepage, but although I have tried to make it responsive, the DW extension I used for it is difficult to work with. I actually found the widget spry tabbed panels easier to work with.

Similar Messages

  • Spry Sliding Panel bugs with Flash SWF, iFrames, CSS background images

    Greetings,
    I'm working on a site right now that is build with Spry 1.6
    Sliding Panels. On the home panel I have integrated a looping SWF,
    and scrolling iFrames on the Overview panel. After extensive
    research on these forums, I'm still scratching my head at a few
    bugs listed below:
    • Firefox (MAC v2.0.0.14)
    - The SWF on the home panel doesn't hide properly when
    sliding to a different panel. I have set 'wmode opaque' parameters
    to the flash file, but this seems to have not resolved the issue.
    - Additionally, I've noticed that sometimes the SWF will not
    finish sliding into the correct position when clicking to the home
    panel (the SWF will stop sliding several pixels left of the
    original positioning).
    - The SWF (which happens to be a loop animation) resets every
    time the home panel is visited. In my testing, this does not happen
    in any other browser.
    - On the Overview panel, scrolling iFrames are used on the
    "Staff Profiles". These iFrames don't hide properly when clicking
    through other panels, as the scroll bars are still viewable.
    - Overall, the sliding animation is a bit choppy compared to
    all other browsers. I can live with this, but I wonder if I have
    improper code somewhere?
    • Opera (MAC v9.27)
    - Same issue as above concerning the fact that the SWF
    appears outside of the sliding panel view port.
    • IE 6
    - CSS background images flash during the sliding panel
    animation.
    * Site page links *
    Main URL
    Home
    Page iFrame
    Overview
    Page iFrame
    * CSS *
    Main
    site-wide CSS
    Sliding
    Panels CSS
    * Scripts *
    Sliding
    Panels Sript
    Any suggestions, pointers would be much appreciated!
    Cheers,
    Chris

    Greetings,
    I'm working on a site right now that is build with Spry 1.6
    Sliding Panels. On the home panel I have integrated a looping SWF,
    and scrolling iFrames on the Overview panel. After extensive
    research on these forums, I'm still scratching my head at a few
    bugs listed below:
    • Firefox (MAC v2.0.0.14)
    - The SWF on the home panel doesn't hide properly when
    sliding to a different panel. I have set 'wmode opaque' parameters
    to the flash file, but this seems to have not resolved the issue.
    - Additionally, I've noticed that sometimes the SWF will not
    finish sliding into the correct position when clicking to the home
    panel (the SWF will stop sliding several pixels left of the
    original positioning).
    - The SWF (which happens to be a loop animation) resets every
    time the home panel is visited. In my testing, this does not happen
    in any other browser.
    - On the Overview panel, scrolling iFrames are used on the
    "Staff Profiles". These iFrames don't hide properly when clicking
    through other panels, as the scroll bars are still viewable.
    - Overall, the sliding animation is a bit choppy compared to
    all other browsers. I can live with this, but I wonder if I have
    improper code somewhere?
    • Opera (MAC v9.27)
    - Same issue as above concerning the fact that the SWF
    appears outside of the sliding panel view port.
    • IE 6
    - CSS background images flash during the sliding panel
    animation.
    * Site page links *
    Main URL
    Home
    Page iFrame
    Overview
    Page iFrame
    * CSS *
    Main
    site-wide CSS
    Sliding
    Panels CSS
    * Scripts *
    Sliding
    Panels Sript
    Any suggestions, pointers would be much appreciated!
    Cheers,
    Chris

  • Background execution: Report Header

    Hi,
    When I am executing a custom report in background the report header is appearing on every page in the  spool output ..is it possible to have headaer only at 1st page in the output generated in spool request.
    I need to download the report in excel and this way it will take long time for delete and sort the rows.
    /Mike

    Hi Manik,
    As i know report header means the title of the program right correct me if i am wrong.
    Then
    IF SY-CRPOG = SY-BATCH.
    IF SYPAGNO NE '1'.
    RS38M-REPTI = ' '. or clear RS38M-REPTI.
    ENDIF.
    ENDIF.
    Thanks

  • JTable - Groupable/Multiline Header

    Hi Everybody,
    I found this code to create a groupable/multiline header for a JTable. It seems to be working fine with JDK 1.1 and we are using 1.4 now. I keep getting 2 errors with the GroupableTableHeaderUI class and has been busy the whole weekend trying to fix it, with no success. Can someone please help? Thanks. Here is the code:
    * |-----------------------------------------------------|
    * | | Name | Language |
    * | |-----------------|--------------------------|
    * | SNo. | | | | Others |
    * | | 1 | 2 | Native |-----------------|
    * | | | | | 2 | 3 |
    * |-----------------------------------------------------|
    * | | | | | | |
    package tableheader;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import swing.table.*;
    public class GroupableHeaderExample extends JFrame {
    GroupableHeaderExample() {
    super( "Groupable Header Example" );
    DefaultTableModel dm = new DefaultTableModel();
    dm.setDataVector(new Object[][]{
    {"119","foo","bar","ja","ko","zh"},
    {"911","bar","foo","en","fr","pt"}},
    new Object[]{"SNo.","1","2","Native","2","3"});
    JTable table = new JTable( dm ) {
    protected JTableHeader createDefaultTableHeader() {
         return new GroupableTableHeader(columnModel);
    TableColumnModel cm = table.getColumnModel();
    ColumnGroup g_name = new ColumnGroup("Name");
    g_name.add(cm.getColumn(1));
    g_name.add(cm.getColumn(2));
    ColumnGroup g_lang = new ColumnGroup("Language");
    g_lang.add(cm.getColumn(3));
    ColumnGroup g_other = new ColumnGroup("Others");
    g_other.add(cm.getColumn(4));
    g_other.add(cm.getColumn(5));
    g_lang.add(g_other);
    GroupableTableHeader header = (GroupableTableHeader)table.getTableHeader();
    header.addColumnGroup(g_name);
    header.addColumnGroup(g_lang);
    JScrollPane scroll = new JScrollPane( table );
    getContentPane().add( scroll );
    setSize( 400, 120 );
    public static void main(String[] args) {
    GroupableHeaderExample frame = new GroupableHeaderExample();
    frame.addWindowListener( new WindowAdapter() {
    public void windowClosing( WindowEvent e ) {
         System.exit(0);
    frame.setVisible(true);
    package swing.table;
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class GroupableTableHeader extends JTableHeader {
    private static final String uiClassID = "GroupableTableHeaderUI";
    protected Vector columnGroups = null;
    public GroupableTableHeader(TableColumnModel model) {
    super(model);
    setUI(new GroupableTableHeaderUI());
    setReorderingAllowed(false);
    public void setReorderingAllowed(boolean b) {
    reorderingAllowed = false;
    public void addColumnGroup(ColumnGroup g) {
    if (columnGroups == null) {
    columnGroups = new Vector();
    columnGroups.addElement(g);
    public Enumeration getColumnGroups(TableColumn col) {
    if (columnGroups == null) return null;
    Enumeration enum = columnGroups.elements();
    while (enum.hasMoreElements()) {
    ColumnGroup cGroup = (ColumnGroup)enum.nextElement();
    Vector v_ret = (Vector)cGroup.getColumnGroups(col,new Vector());
    if (v_ret != null) {
         return v_ret.elements();
    return null;
    public void setColumnMargin() {
    if (columnGroups == null) return;
    int columnMargin = getColumnModel().getColumnMargin();
    Enumeration enum = columnGroups.elements();
    while (enum.hasMoreElements()) {
    ColumnGroup cGroup = (ColumnGroup)enum.nextElement();
    cGroup.setColumnMargin(columnMargin);
    package swing.table;
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.plaf.basic.*;
    public class GroupableTableHeaderUI extends BasicTableHeaderUI {
    public void paint(Graphics g, JComponent c) {
    Rectangle clipBounds = g.getClipBounds();
    if (header.getColumnModel() == null) return;
    ((GroupableTableHeader)header).setColumnMargin();
    int column = 0;
    Dimension size = header.getSize();
    Rectangle cellRect = new Rectangle(0, 0, size.width, size.height);
    Hashtable h = new Hashtable();
    int columnMargin = header.getColumnModel().getColumnMargin();
    Enumeration enumeration = header.getColumnModel().getColumns();
    while (enumeration.hasMoreElements()) {
    cellRect.height = size.height;
    cellRect.y = 0;
    TableColumn aColumn = (TableColumn)enumeration.nextElement();
    Enumeration cGroups = ((GroupableTableHeader)header).getColumnGroups(aColumn);
    if (cGroups != null) {
    int groupHeight = 0;
    while (cGroups.hasMoreElements()) {
    ColumnGroup cGroup = (ColumnGroup)cGroups.nextElement();
    Rectangle groupRect = (Rectangle)h.get(cGroup);
    if (groupRect == null) {
    groupRect = new Rectangle(cellRect);
    Dimension d = cGroup.getSize(header.getTable());
    groupRect.width = d.width;
    groupRect.height = d.height;
    h.put(cGroup, groupRect);
    paintCell(g, groupRect, cGroup);
    groupHeight += groupRect.height;
    cellRect.height = size.height - groupHeight;
    cellRect.y = groupHeight;
    cellRect.width = aColumn.getWidth() + columnMargin;
    if (cellRect.intersects(clipBounds)) {
    paintCell(g, cellRect, column);
    cellRect.x += cellRect.width;
    column++;
    private void paintCell(Graphics g, Rectangle cellRect, int columnIndex) {
    TableColumn aColumn = header.getColumnModel().getColumn(columnIndex);
    TableCellRenderer renderer = aColumn.getHeaderRenderer();
    Component component = renderer.getTableCellRendererComponent(
    header.getTable(), aColumn.getHeaderValue(),false, false, -1, columnIndex);
    rendererPane.add(component);
    rendererPane.paintComponent(g, component, header, cellRect.x, cellRect.y,
                        cellRect.width, cellRect.height, true);
    private void paintCell(Graphics g, Rectangle cellRect,ColumnGroup cGroup) {
    TableCellRenderer renderer = cGroup.getHeaderRenderer();
    Component component = renderer.getTableCellRendererComponent(
    header.getTable(), cGroup.getHeaderValue(),false, false, -1, -1);
    rendererPane.add(component);
    rendererPane.paintComponent(g, component, header, cellRect.x, cellRect.y,
                        cellRect.width, cellRect.height, true);
    private int getHeaderHeight() {
    int height = 0;
    TableColumnModel columnModel = header.getColumnModel();
    for(int column = 0; column < columnModel.getColumnCount(); column++) {
    TableColumn aColumn = columnModel.getColumn(column);
    TableCellRenderer renderer = aColumn.getHeaderRenderer();
    Component comp = renderer.getTableCellRendererComponent(
    header.getTable(), aColumn.getHeaderValue(), false, false,-1, column);
    int cHeight = comp.getPreferredSize().height;
    Enumeration enum = ((GroupableTableHeader)header).getColumnGroups(aColumn);
    if (enum != null) {
    while (enum.hasMoreElements()) {
    ColumnGroup cGroup = (ColumnGroup)enum.nextElement();
    cHeight += cGroup.getSize(header.getTable()).height;
    height = Math.max(height, cHeight);
    return height;
    private Dimension createHeaderSize(long width) {
    TableColumnModel columnModel = header.getColumnModel();
    width += columnModel.getColumnMargin() * columnModel.getColumnCount();
    if (width > Integer.MAX_VALUE) {
    width = Integer.MAX_VALUE;
    return new Dimension((int)width, getHeaderHeight());
    public Dimension getPreferredSize(JComponent c) {
    long width = 0;
    Enumeration enumeration = header.getColumnModel().getColumns();
    while (enumeration.hasMoreElements()) {
    TableColumn aColumn = (TableColumn)enumeration.nextElement();
    width = width + aColumn.getPreferredWidth();
    return createHeaderSize(width);
    package swing.table;
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class ColumnGroup {
    protected TableCellRenderer renderer;
    protected Vector v;
    protected String text;
    protected int margin=0;
    public ColumnGroup(String text) {
    this(null,text);
    public ColumnGroup(TableCellRenderer renderer,String text) {
    if (renderer == null) {
    this.renderer = new DefaultTableCellRenderer() {
         public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus, int row, int column) {
         JTableHeader header = table.getTableHeader();
         if (header != null) {
         setForeground(header.getForeground());
         setBackground(header.getBackground());
         setFont(header.getFont());
    setHorizontalAlignment(JLabel.CENTER);
    setText((value == null) ? "" : value.toString());
         setBorder(UIManager.getBorder("TableHeader.cellBorder"));
         return this;
    } else {
    this.renderer = renderer;
    this.text = text;
    v = new Vector();
    * @param obj TableColumn or ColumnGroup
    public void add(Object obj) {
    if (obj == null) { return; }
    v.addElement(obj);
    * @param c TableColumn
    * @param v ColumnGroups
    public Vector getColumnGroups(TableColumn c, Vector g) {
    g.addElement(this);
    if (v.contains(c)) return g;
    Enumeration enum = v.elements();
    while (enum.hasMoreElements()) {
    Object obj = enum.nextElement();
    if (obj instanceof ColumnGroup) {
    Vector groups =
    (Vector)((ColumnGroup)obj).getColumnGroups(c,(Vector)g.clone());
    if (groups != null) return groups;
    return null;
    public TableCellRenderer getHeaderRenderer() {
    return renderer;
    public void setHeaderRenderer(TableCellRenderer renderer) {
    if (renderer != null) {
    this.renderer = renderer;
    public Object getHeaderValue() {
    return text;
    public Dimension getSize(JTable table) {
    Component comp = renderer.getTableCellRendererComponent(
    table, getHeaderValue(), false, false,-1, -1);
    int height = comp.getPreferredSize().height;
    int width = 0;
    Enumeration enum = v.elements();
    while (enum.hasMoreElements()) {
    Object obj = enum.nextElement();
    if (obj instanceof TableColumn) {
    TableColumn aColumn = (TableColumn)obj;
    width += aColumn.getWidth();
    width += margin;
    } else {
    width += ((ColumnGroup)obj).getSize(table).width;
    return new Dimension(width, height);
    public void setColumnMargin(int margin) {
    this.margin = margin;
    Enumeration enum = v.elements();
    while (enum.hasMoreElements()) {
    Object obj = enum.nextElement();
    if (obj instanceof ColumnGroup) {
    ((ColumnGroup)obj).setColumnMargin(margin);

    in GroupableTableHeaderUI class replace "aColumn.getHeaderRenderer();" by "header.getDefaultRenderer ();" and try again..
    this should solve ur problem ..
    Indranil

  • CSS background cover vertically?

    i want to do a site with a large background image, but when the browser its to small the image repeat itself.
    does anybody have a nice idea of how to fix it?
    should i use a color gradient to mix them?
    or set the size or the proportion of the image to something?
    is there a css background property to cover vertically?

    I don't like to use extra large images for backgrounds as they take up too much bandwidth which creates slower loading pages.  Also, you can't predict how small or large your end user's viewport is so your image may not display appropriately on many web devices (mobile phone, tablet, laptop, ultra-wide).
    The best backgrounds for web pages are small seamless tiles or gradient slices that repeat horizontally and vertically to fill the browser's viewport, regardless of size.
    body {
    background-image: url(BG-image,jpg;
    To repeat an image vertically
    body {
    background-image: url(BG-image,jpg;
    background-repeat: y;
    To repeat an image horizontally
    body {
    background-image: url(BG-image,jpg;
    background-repeat: x;
    More on backgrounds:
    http://alt-web.com/Backgrounds.shtml
    http://w3schools.com/css/css_background.asp
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Css Background Gradient

    i have a css background gradient... but when i scroll, the gradient stick in the loading height.
    what can i do to have the gradient correct always?
    html {
        height:100%;
    body {
        height:100%;
        font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
        background: -moz-linear-gradient(top, rgba(84,84,84,0.9) 0%, rgba(0,0,0,0.9) 100%);
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(84,84,84,0.9)), color-stop(100%, rgba(0,0,0,0.9)));
        background: -webkit-linear-gradient(top, rgba(84,84,84,0.9) 0%, rgba(0,0,0,0.9) 100%);
        background: -o-linear-gradient(top, rgba(84,84,84,0.9) 0%, rgba(0,0,0,0.9) 100%);
        background: -ms-linear-gradient(top, rgba(84,84,84,0.9) 0%, rgba(0,0,0,0.9) 100%);
        background: linear-gradient(top, rgba(84,84,84,0.9) 0%, rgba(0,0,0,0.9) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e6545454', endColorstr='#e6000000', GradientType=0 );
        margin: 0;
        padding: 0;
        color: #000;

    Don't know about the Javascript - you basically would need to create a listener that would detect when the window size changed and the reapply the CSS gradients. One issue with that approach is that it can become a bit of a resource hog.
    For approach #2 check out: http://www.designbyfire.com/ - scroll and look at the bottom of his text content - he's using a transparent png graphic to create a kind of fade gradient effect (it's very subtle). Take a look at the source to see how he did it. Also this might be helpful:
    http://www.1stwebdesigner.com/inspiration/beautiful-gradient-effects-on-web-design-researc h-part-2/ - a bunch of sites that use this technique for background gradients.
    But basically create a gradient graphic in Photoshop (you only need a small sliver graphic as we can repeat it across the x-axis). Then in your CSS do something like this:
    body{
    background:#ccc url("path/to/gradientImage.jpg") bottom repeat-x;
    Change the background color (#ccc) to match the top of your gradient image color. "bottom" tells the browser to attatch the graphic to the bottom of the body tag, "repeat-x" tells the browser to repeat it across the x-axis (horizontal). If you've done it right, your background image will blend into the background color creating a nice gradient effect.

  • Firefox don't load CSS Background at all on any Websites.

    Hey All
    I am running Firefox12 on Windows 7 ( 64 bit )
    Firefox does not load ANY css bg images, css background colors and text colors. Layout is all completely normal, but all colour and background stuff doesn't work (links are all blue, pages all white, etc.). at all on any sites.
    I've tried disabling all add-ons and restarting firefox and restarting the computer and clearing the cache and all that good stuff.
    Settings are not blocking images and are surely loading all image content automatically and all.
    Also Checked
    Firefox > Preferences > Content : Fonts & Colors: Colors > [[X]"Allow pages to choose their own colors, instead of my selections above"
    So that's not it
    I also use Firebug, but clearing the console does nothing. Neither does uninstalling Firebug. I noticed that in the Firefox Error Console I receive warnings for these issues. For example on this page I see numerous warning like:
    Look below for Few Screenshots of Error Console

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    *http://kb.mozillazine.org/Website_colors_are_wrong
    *http://kb.mozillazine.org/Websites_look_wrong

  • CSS : Background image not appearing on header

    Hi Guys,
    I need help with the background color of my header, for some reason, it's appearing in dreamweaver but NOT in the browser (FF, Chrome)
    If you have firebug, you can check the source from the link below.
    http://oneworldlc.ph/contact.php
    <body>
    <div id="main_container">
      <!-- TOP_NAV-->
      <div id="top_nav">
        <div id="nav">
          <div id="nav_container">
            <ul>
              <li><a href="contact/index.html">Home</a></li>
              <li>|</li>
              <li><a href="#">About Us </a></li>
              <li>|</li>
              <li><a href="#">Company</a></li>
              <li>|</li>
              <li><a href="#">Contact Us</a></li>
            </ul>
          </div>
        </div>
      </div>
      <!-- /TOP_NAV-->
      <div id="contact_banner">
        <div id="contact_logo">
          <p> </p>
          <p> </p>
          <p> </p>
          <p> </p>
          <h2 align="center">Merging cultural gaps between Americans and BPO centers in the Philippines</h2>
          <p align="center" class="emphasis_red">We provide FREE training</p>
        </div>
      </div>
      <div id="page-wrap">
        <p align="center"><img src="images/contact_07.png" alt="Contact One World Learning Center Inc." width="180" height="44" /></p>
        <p> </p>
        <h1 align="center">One World Learning Center Inc.</h1>
        <p align="center" class="georgia_16px_559cbe">21st Floor, Robinson's Cybergate Tower 3, Pioneer St.</p>
        <p align="center" class="georgia_16px_559cbe">Mandaluyong City 1550</p>
        <p align="center"><span class="georgia_16px_559cbe">Phone: +63 917 887 7424</span><br />
        </p>
        <div id="contact-area">
          <form method="post" action="contact/contactengine.php">
            <table>
              <tr>
              <td> </td>
                <td><em>
                  <label for="Name"  class="left"><strong>              Name:</strong></label>
                  (required)<br />
                  <br />
                  <input name="Name" type="text" value="First Name, Last Name" />
                </em></td>
              </tr>
             <tr>
                <td> </td>
                <td><em>
                  <label for="Tel"  class="left"><strong><br />
                  Contact Number:</strong></label>
                  (required)<br />
                  <br />
                  <input type="text" name="Tel" />
                </em></td>
              </tr>
              <tr>
                <td> </td>
                <td><label for="Email" class="left"><strong><em><br />
                Email:</em></strong></label>
                <em>(required)</em><br /><br /><input name="Email" type="text" value="[email protected]" /></td>
              </tr>
              <tr>
                <td> </td>
                <td><label for="Message" class="left"><strong><em><br />
                Message:</em></strong></label>
                <em>(required)</em><br /><br /><textarea name="Message" rows="20" cols="20">Type your message here</textarea></td>
              </tr>
            </table>
            <div id="captcha-area">
              <?php
                        require_once('contact/recaptchalib.php');
                        $publickey = "6Lcd3AgAAAAAAAshrQD48fz1uOm_KrgeRBEnsU9e";
                        $privatekey = "6Lcd3AgAAAAAALNv3Uga2Pi7tHi08wODv-fsXR_N";
                        # the response from reCAPTCHA
                        $resp = null;
                        # the error code from reCAPTCHA, if any
                        $error = null;
                        # are we submitting the page?
                        if ($_POST["submit"]) {
                          $resp = recaptcha_check_answer ($privatekey,
                                                                  $_SERVER["REMOTE_ADDR"],
                                                                  $_POST["recaptcha_challenge_field"],
                                                                  $_POST["recaptcha_response_field"]);
                          if ($resp->is_valid) {
                             echo "You got it!";
                             # in a real application, you should send an email, create an account, etc
                          } else {
                             # set the error code so that we can display it. You could also use
                             # die ("reCAPTCHA failed"), but using the error message is
                             # more user friendly
                             $error = $resp->error;
                        echo recaptcha_get_html($publickey, $error);
                        ?>
            </div>
            <input type="submit" name="submit" value="Submit" class="submit-button" />
          </form>
        </div>
      </div>
      </div>
    </body>
    Here's the css:
    @charset "utf-8";
    /* CSS Document */
    html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote,
    pre, form, fieldset, table, th, td { margin: 0; padding: 0; }#main_container #top_nav {
         height: 35px;
         background-color: #000000;
    #main_container #top_nav #nav {
         font-family: Georgia;
         height: 35px;
         width: 940px;
         margin-right: auto;
         margin-left: auto;
    #page-wrap h1 {
         font-family: Georgia;
         font-size: 26px;
         font-style: normal;
    #footer  {
         background-color: #000000;
         color: #FFFFFF;
         text-align: center;
    #footer_owl_cont  p    {
         margin-left: 120px;
    #footer_owl_cont    {
         float: left;
         width: 481px;
         clear: both;
         margin-left: 239px;
         background-image: url(images/owl_footer.gif);
         background-repeat: no-repeat;
         background-position: left center;
         height: 142px;
         color: ffffff;
         background-color: transparent;
    #sidebar #sidebar_cont_2 {
         margin-top: 255px;
    #pitch_container {
         height: 150px;
         background-color: #000000;
         margin-right: auto;
         margin-left: auto;
         color: #FFFF00;
         font-family: Arial;
         font-style: italic;
         width: 900px;
         margin-top: 100px;
    #body_container {
         margin-right: auto;
         margin-left: auto;
         width: 940px;
         padding-top: 30px;
    #footer_owl_cont  .georgia_14px_559cbeCopy  a    {
         color: #FFFFFF;
         text-decoration: none;
    #footer_owl_cont  .georgia_14px_559cbeCopy  a:hover    {
         text-decoration: underline;
    #main_container #top_nav #nav ul li a {
         font-family: Georgia, sans-serif;
         color: 559cbe;
         text-decoration: none;
    #main_container #top_nav #nav {
         color: 559cbe;
         text-decoration: none;
    #main_container #top_nav #nav #nav_container {
         clear: both;
         float: left;
         margin-top: 10px;
    #main_container #top_nav #nav #nav_container a:hover {
         text-decoration: underline;
    #main_container #top_nav #nav #nav_container a {
         color: #559CBE;
         text-decoration: none;
         font-family: Georgia;
    #main_container #top_nav #nav ul {
         list-style-type: none;
    #main_container #top_nav ul li {
         display: inline;
         padding-right: 2.5px;
         padding-left: 2.5px;
    #copyright   {
         width: 940px;
         margin-right: auto;
         margin-left: auto;
         height: 148px;
         color: 559cbe;
    #main_container   #header_container  {
         background-image: url(images/bg_header.jpg);
         background-repeat: repeat-x;
         background-position: center top;
         border-bottom-width: 1px;
         border-bottom-style: solid;
         border-bottom-color: #000000;
    #main_container #header_container #header_main {
         height: 354px;
         width: 940px;
         margin-right: auto;
         margin-left: auto;
         background-color: transparent;
         background-image: url(images/header_bg2.png);
         background-repeat: no-repeat;
         background-position: right;
    #main_container #header_container #header_main #submit_cont {
         float: left;
         margin-top: 233px;
         margin-left: 435px;
         font-size: 18px;
         font-family: Georgia;
         font-style: italic;
    #main_container #header_container #header_main #submit_cont a {
         color: #FFFF00;
         text-decoration: none;
    #main_container #header_container #header_main #submit_cont a:hover {
         text-decoration: underline;
    #sidebar {
         float: left;
         width: 380px;
         clear: both;
    #maincontent {
         width: 540px;
         margin-left: 400px;
         font-family: Georgia;
         line-height: 1.6em;
    #sidebar #banner_1_cont {
         height: 235px;
         width: 380px;
         background-image: url(images/banner_1_q1.jpg);
         background-color: transparent;
         background-repeat: no-repeat;
         background-position: center center;
         clear: both;
         float: left;
    #sidebar #banner_1_cont p {
         font-family: Georgia;
         font-size: 13px;
         font-style: italic;
         color: #000000;
         margin-top: 175px;
         margin-left: 15px;
         position: relative;
    #maincontent ol {
         list-style-position: inside;
    #maincontent h3 {
         font-size: 26px;
    #pitch_container ul li {
         font-family: Georgia;
         font-size: 26px;
         font-style: italic;
         line-height: 1.6em;
         color: 1e1e1e;
    I hope you can enlighten me guys, am I missing something which makes it NOT to appear in Dreamweaver?
    Regards,
    Sid

    Thanks for the response Gary. However, the 35px that you're seeing is actually for the #nav. I recreate the css and tried to remove some of the heirarchy thing. Here's the updated copy. I even tried to remove the #main_container. Same thing happens, the bg image is still not appearing? I tried changing the file type to JPG but to no avail. I think I'm overlooking something which is causing the issue.
    @charset "utf-8";
    /* CSS Document */
    html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote,
    pre, form, fieldset, table, th, td { margin: 0; padding: 0; }#top_nav  {
         height: 35px;
         background-color: #000000;
    #nav   {
         font-family: Georgia;
         height: 35px;
         width: 940px;
         margin-right: auto;
         margin-left: auto;
    #page-wrap h1 {
         font-family: Georgia;
         font-size: 26px;
         font-style: normal;
    #footer  {
         background-color: #000000;
         color: #FFFFFF;
         text-align: center;
    #footer_owl_cont  p    {
         margin-left: 120px;
    #footer_owl_cont    {
         float: left;
         width: 481px;
         clear: both;
         margin-left: 239px;
         background-image: url(images/owl_footer.gif);
         background-repeat: no-repeat;
         background-position: left center;
         height: 142px;
         color: ffffff;
         background-color: transparent;
    #sidebar #sidebar_cont_2 {
         margin-top: 255px;
    #pitch_container {
         height: 150px;
         background-color: #000000;
         margin-right: auto;
         margin-left: auto;
         color: #FFFF00;
         font-family: Arial;
         font-style: italic;
         width: 900px;
         margin-top: 100px;
    #body_container {
         margin-right: auto;
         margin-left: auto;
         width: 940px;
         padding-top: 30px;
    #footer_owl_cont  .georgia_14px_559cbeCopy  a    {
         color: #FFFFFF;
         text-decoration: none;
    #footer_owl_cont  .georgia_14px_559cbeCopy  a:hover    {
         text-decoration: underline;
    #nav  ul  li  a   {
         font-family: Georgia, sans-serif;
         color: 559cbe;
         text-decoration: none;
    #nav   {
         color: 559cbe;
         text-decoration: none;
    #nav_container    {
         clear: both;
         float: left;
         margin-top: 10px;
    #nav_container  a:hover    {
         text-decoration: underline;
    #nav_container  a    {
         color: #559CBE;
         text-decoration: none;
         font-family: Georgia;
    #nav  ul   {
         list-style-type: none;
    #top_nav  ul  li  {
         display: inline;
         padding-right: 2.5px;
         padding-left: 2.5px;
    #copyright   {
         width: 940px;
         margin-right: auto;
         margin-left: auto;
         height: 148px;
         color: 559cbe;
    #header_container     {
         background-image: url(images/bg_header.jpg);
         background-repeat: repeat-x;
         background-position: center top;
         border-bottom-width: 1px;
         border-bottom-style: solid;
         border-bottom-color: #000000;
    #header_main   {
         height: 354px;
         width: 940px;
         margin-right: auto;
         margin-left: auto;
         background-color: transparent;
         background-image: url(images/header_bg2.png);
         background-repeat: no-repeat;
         background-position: right;
    #submit_cont    {
         float: left;
         margin-top: 233px;
         margin-left: 435px;
         font-size: 18px;
         font-family: Georgia;
         font-style: italic;
    #submit_cont  a    {
         color: #FFFF00;
         text-decoration: none;
    #submit_cont  a:hover    {
         text-decoration: underline;
    #sidebar {
         float: left;
         width: 380px;
         clear: both;
    #maincontent {
         width: 540px;
         margin-left: 400px;
         font-family: Georgia;
         line-height: 1.6em;
    #banner_1_cont  {
         height: 235px;
         width: 380px;
         background-image: url(images/banner_1_q1.jpg);
         background-color: transparent;
         background-repeat: no-repeat;
         background-position: center center;
         clear: both;
         float: left;
    #banner_1_cont  p  {
         font-family: Georgia;
         font-size: 13px;
         font-style: italic;
         color: #000000;
         margin-top: 175px;
         margin-left: 15px;
         position: relative;
    #maincontent ol {
         list-style-position: inside;
    #maincontent h3 {
         font-size: 26px;
    #pitch_container ul li {
         font-family: Georgia;
         font-size: 26px;
         font-style: italic;
         line-height: 1.6em;
         color: 1e1e1e;

  • CSS- Background img not showing up in container

    Hello, I am new to css but not to webpages. I used to design
    pages using tables and now I want to learn and design using css.
    But I'm having trouble and I figure its a quick fix. Note this
    website is not on line I am doing my test use IE 7 and Firefox ver
    2 PC Ver.
    Q: I'm trying to design a website for a client and I am have
    trouble try to get my background img to show up in my #container.
    Here is sample of my basic layout. Hope some could help me.
    @charset "utf-8";
    body {
    background-color: #271a0b;
    background-image: url(../images/bgStrip.gif);
    background-repeat: repeat-x;
    #container {
    width: 100%;
    height: 900px;
    overflow: hidden;
    background-image: url(/images/backGround.jpg);
    background-repeat: no-repeat;
    background-position: 0;
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <link href="asset/screen.css" rel="stylesheet"
    type="text/css" />
    </head>
    <body>
    <div id="container">Content for id
    &quot;container&quot; Goes Here</div>
    </body>
    </html>
    body background is working. Note: Got the codes samples from
    CSS Cookbook, good book learning allot but can't seem to get it to
    work. Hope some could help me.

    If the page in question is one level below the root of the
    site, and if the
    images folder is at the same level as the root of the site,
    then both links
    would be correct.
    Also, since background-position defaults to "0", there's no
    reason to
    restate it.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Virginia Carter" <[email protected]>
    wrote in message
    news:[email protected]...
    > Without seeing the page on the web, it's somewhat
    difficult to see exactly
    > where the problem is, but this is curious:
    >
    > body {
    > background-color: #271a0b;
    > background-image: url(../images/bgStrip.gif);
    > background-repeat: repeat-x;
    > }
    >
    > #container {
    > width: 100%;
    > height: 900px;
    > overflow: hidden;
    > background-image: url(/images/backGround.jpg);
    background-repeat:
    > no-repeat;
    > background-position: 0;
    > }
    >
    > It's looking in two different places for those images:
    >
    > ../images and /images
    >
    > Check that and then see if you still have troubles.
    >
    > --
    >
    > Virginia Carter
    > Carolina Web Creations
    > ======================
    > www.carolinawebcreations.biz
    >
    > borgru12 wrote:
    >> Hello, I am new to css but not to webpages. I used
    to design pages using
    >> tables and now I want to learn and design using css.
    But I'm having
    >> trouble and I figure its a quick fix. Note this
    website is not on line I
    >> am doing my test use IE 7 and Firefox ver 2 PC Ver.
    >>
    >> Q: I'm trying to design a website for a client and I
    am have trouble try
    >> to get my background img to show up in my
    #container. Here is sample of
    >> my basic layout. Hope some could help me.
    >> @charset "utf-8";
    >>
    >> body {
    >> background-color: #271a0b;
    >> background-image: url(../images/bgStrip.gif);
    >> background-repeat: repeat-x;
    >> }
    >>
    >> #container {
    >> width: 100%;
    >> height: 900px;
    >> overflow: hidden;
    >> background-image: url(/images/backGround.jpg);
    background-repeat:
    >> no-repeat;
    >> background-position: 0;
    >> }
    >>
    >>
    >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Strict//EN"
    >> "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    >> <html xmlns="
    http://www.w3.org/1999/xhtml">
    >> <head>
    >> <meta http-equiv="Content-Type"
    content="text/html; charset=utf-8" />
    >> <title>Untitled Document</title>
    >>
    >> <link href="asset/screen.css" rel="stylesheet"
    type="text/css" />
    >> </head>
    >>
    >> <body> <div id="container">Content for
    id 'container' Goes Here</div>
    >>
    >> </body>
    >> </html>
    >>
    >>
    >> body background is working. Note: Got the codes
    samples from CSS
    >> Cookbook, good book learning allot but can't seem to
    get it to work. Hope
    >> some could help me.
    >>

  • Css background-position problem

    Hello, I get a problem with this style:
    <style type="text/css" media="screen">
    html {
    margin: 0px;
    padding: 0px;
    height: 100%;
    width: 100%;
    body {
    background-color:#ffffff;
    background-image:url(images/myimage.jpg);
    background-position: center bottom;
    background-repeat:repeat-x;
    </style>
    In ie7 works fine, in firefox 2 the bottom position doesn't
    work...
    Any suggestion ?
    Thanks
    howdy

    Hello, this is the page, simply copy and paste.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>test background</title>
    <style type="text/css" media="screen">
    html {
    margin: 0px;
    padding: 0px;
    height: 100%;
    width: 100%;
    body {
    background-color:#ffffff;
    background-image:url(
    http://img179.imageshack.us/img179/2401/backgroundkc8.jpg);
    background-position: center bottom;
    background-repeat:repeat-x;
    #layer1{
    text-align: center;
    width: 300px;
    margin-right: auto;
    margin-left: auto;
    border: 2px double #003333;
    </style>
    </head>
    <body>
    <div id="layer1">Lorem ipsum dolor sit amet,
    consectetuer adipiscing
    elit. Quisque cursus, justo a tincidunt volutpat, dui orci
    feugiat
    justo, at varius odio est quis turpis. Integer nisl enim,
    condimentum
    et, eleifend et, posuere quis, risus. Nam convallis. Integer
    diam dui,
    accumsan mattis, dignissim at, dictum rutrum, justo. Praesent
    lacinia.
    Cras a diam. Aenean quis elit. Duis mauris erat, aliquet nec,
    malesuada
    laoreet, aliquam sit amet, magna. Ut turpis metus,
    sollicitudin ac,
    fermentum non, pretium eu, augue. Nunc faucibus, leo eu
    pharetra
    ultrices, sem augue ultricies risus, at egestas velit lectus
    ac velit.
    Suspendisse pretium nibh dapibus turpis. Praesent felis mi,
    vestibulum
    eu, pellentesque et, consequat eu, ante. Nulla accumsan enim
    et pede.
    Suspendisse potenti.
    Donec eget nulla. Proin et est. Integer volutpat, dolor
    scelerisque
    bibendum egestas, lacus dui venenatis odio, vitae varius
    massa eros sit
    amet ligula. Curabitur tellus. Curabitur ultricies volutpat
    tellus. In
    sodales. Duis cursus mi eu dui placerat porta. Mauris laoreet
    turpis at
    nunc. Vivamus volutpat, metus dignissim accumsan hendrerit,
    turpis
    turpis aliquet nulla, non viverra dui dui quis quam. Mauris
    sem nunc,
    laoreet in, elementum vitae, tempor a, libero. Cras ac turpis
    sit amet
    risus cursus ultrices. Sed id quam.
    Nulla tortor ligula, adipiscing nec, ornare eu, gravida in,
    justo. Sed
    elementum vestibulum lectus. Mauris lectus mauris, convallis
    nec,
    posuere quis, lacinia at, felis. Vestibulum ante ipsum primis
    in
    faucibus orci luctus et ultrices posuere cubilia Curae;
    Aenean cursus
    quam eget dui. Maecenas sapien. Aenean pellentesque lobortis
    mi. Quisque
    tempor ipsum in libero. Pellentesque habitant morbi tristique
    senectus
    et netus et malesuada fames ac turpis egestas. Class aptent
    taciti
    sociosqu ad litora torquent per conubia nostra, per inceptos
    himenaeos.
    Quisque lacus tellus, ornare quis, euismod et, lacinia sed,
    justo. Proin
    auctor nisi sed tortor. Fusce in justo et nisl fermentum
    vehicula.
    Quisque urna felis, lacinia at, viverra in, fermentum ut,
    lacus. Duis
    tempus. Morbi bibendum libero vitae diam faucibus placerat.
    Praesent eu sapien. Sed ut velit quis magna lobortis
    malesuada.
    Phasellus dignissim risus ac est. Pellentesque semper sem.
    Donec porta
    nulla nec quam. Pellentesque aliquet risus id quam. Proin
    tincidunt erat
    nec nunc. Praesent euismod fringilla ipsum. Donec ornare.
    Vestibulum
    ante ipsum primis in faucibus orci luctus et ultrices posuere
    cubilia
    Curae; Sed leo.
    Proin non nisi non neque porta tempus. Proin varius velit eu
    sapien.
    Pellentesque pulvinar arcu id ante. Nunc eu diam. Phasellus
    euismod,
    felis in scelerisque pharetra, diam augue eleifend mi, a
    rutrum mauris
    arcu nec orci. Proin sed erat. Pellentesque et libero.
    Aliquam ante
    velit, ultrices ut, fermentum ac, cursus ut, est. Etiam vitae
    nisl ac
    metus cursus viverra. Proin non felis. Donec massa. Nullam
    quam lectus,
    pulvinar eget, condimentum at, tristique in, quam. Proin
    vehicula
    elementum diam. Proin sapien. Praesent suscipit, lorem at
    dapibus
    fringilla, orci elit facilisis lacus, at dictum augue velit
    quis enim.
    Mauris eu mauris. Aliquam rhoncus fermentum pede. Vestibulum
    gravida
    vulputate mauris.
    Pellentesque consectetuer. Cras tellus justo, iaculis vitae,
    semper at,
    scelerisque porta, tortor. Pellentesque at mi sed tellus
    pellentesque
    ultricies. In quis pede. Integer vel tortor at dui elementum
    suscipit.
    Praesent interdum posuere odio. Integer mollis mattis ipsum.
    Duis id
    metus ut nulla molestie sagittis. Suspendisse faucibus urna
    vel metus.
    Sed bibendum, dolor sit amet rhoncus rutrum, lorem turpis
    pharetra
    tortor, quis viverra neque lorem eget massa. Lorem ipsum
    dolor sit amet,
    consectetuer adipiscing elit. Suspendisse vestibulum arcu
    vitae odio.
    Fusce enim lacus, porttitor nec, scelerisque non, viverra eu,
    enim. Sed
    mauris. In hac habitasse platea dictumst. Duis porta mauris
    quis orci.
    Donec suscipit turpis eu dui egestas suscipit. Suspendisse
    potenti. Cum
    sociis natoque penatibus et magnis dis parturient montes,
    nascetur
    ridiculus mus. In hac habitasse platea dictumst.
    Cras in arcu a mi iaculis ultricies. Pellentesque sed lorem
    at sem
    euismod blandit. Nullam pede lacus, interdum eu, aliquam a,
    pretium vel,
    sem. Pellentesque fringilla leo feugiat nibh. Cras non enim.
    Donec
    luctus ante vel diam. Mauris volutpat sapien eget nunc. Donec
    nec lectus
    nec leo iaculis fringilla. Sed felis magna, cursus et,
    hendrerit sit
    amet, pretium at, sapien. Vivamus ornare neque facilisis
    arcu. Vivamus
    nisi leo, varius ac, sodales ut, dapibus eget, eros.
    </div>
    </body>
    </html>

  • CSS Background Shifts Down

    So, i am working on my school's website in my Web Development Course, and everything seems to be going fine. I have enctountered a problem, i have a divider holding a table that is our navigation bar, and below it the content of the site. When it is in the design/code view, it looks fine as displayed in Figure 1
    then when it is previewed in any browser, or in live view, it moves it down like 10ish pixels...there is no margins on any of the div either.
    and here is the code for you to look at.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Belmont High School - Home</title>
    <style type="text/css">
    <!--
    body {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: #666666;
    margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    color: #000000;
    .oneColFixCtr #container #content #center {
    float: left;
    height: 520px;
    width: 400px;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    text-align: center;
    background-image: url(images/center.png);
    background-repeat: no-repeat;
    background-position: center top;
    .oneColFixCtr #container #content #right ul {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 11px;
    .oneColFixCtr #container #content #right {
    float: right;
    height: 520px;
    width: 200px;
    font-family: Tahoma, Geneva, sans-serif;
    background-repeat: no-repeat;
    background-position: center top;
    background-image: url(file:///U|/Fall-Spring2010_11/Web%20Design/BHS%20website%202011-2012/Homepage-%20Bing %20and%20Ryan/images/right.png);
    padding: 0px;
    margin: 0px;
    .oneColFixCtr #container #content .left {
    float: left;
    height: 520px;
    width: 200px;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 16px;
    background-repeat: no-repeat;
    background-position: center top;
    text-align: left;
    background-image: url(file:///U|/Fall-Spring2010_11/Web%20Design/BHS%20website%202011-2012/Homepage-%20Bing %20and%20Ryan/images/left.png);
    .oneColFixCtr #container {
    width: 800px; /* the auto margins (in conjunction with a width) center the page */
    border: 1px solid #000000;
    text-align: left; /* this overrides the text-align: center on the body element. */
    height: 1020px;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    background-color: #830A16;
    .oneColFixCtr #container #bubble {
    height: 300px;
    background-repeat: no-repeat;
    background-position: left top;
    text-align: center;
    font-family: "Times New Roman", Times, serif;
    padding: 0px;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    border-top-style: 0;
    border-right-style: 0;
    border-bottom-style: 0;
    border-left-style: 0;
    font-size: 17px;
    font-style: normal;
    background-image: url(images/bubble.png);
    margin-top: 5px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    .oneColFixCtr #navigation {
    height: 30px;
    .oneColFixCtr #container #content {
    height: 820px;
    width: 800px;
    -->
    </style>
    <script src="/Scripts/swfobject_modified.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_nbGroup(event, grpName) { //v6.0
      var i,img,nbArr,args=MM_nbGroup.arguments;
      if (event == "init" && args.length > 2) {
        if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
          img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
          if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
          nbArr[nbArr.length] = img;
          for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
            if (!img.MM_up) img.MM_up = img.src;
            img.src = img.MM_dn = args[i+1];
            nbArr[nbArr.length] = img;
      } else if (event == "over") {
        document.MM_nbOver = nbArr = new Array();
        for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
          nbArr[nbArr.length] = img;
      } else if (event == "out" ) {
        for (i=0; i < document.MM_nbOver.length; i++) {
          img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
      } else if (event == "down") {
        nbArr = document[grpName];
        if (nbArr)
          for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
        document[grpName] = nbArr = new Array();
        for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
          nbArr[nbArr.length] = img;
    //-->
    </script>
    </head>
    <body class="oneColFixCtr" onload="MM_preloadImages('file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/Home_DOWN.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/home_OVER.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/aboutus_DOWN.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/aboutus_OVER.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/departments_DOWN.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/departments_OVER.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/sports_DOWN.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/sports_OVER.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/guidance_DOWN.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/guidance_OVER.png')">
    <div id="container">
    <div class="header" id="header">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="148" id="bhs_header" title="Belmont High School Slideshow">
        <param name="movie" value="movie/header_slideshow.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="opaque" />
        <param name="swfversion" value="6.0.65.0" />
        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
        <param name="expressinstall" value="/Scripts/expressInstall.swf" />
        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="movie/header_slideshow.swf" width="800" height="148">
          <!--<![endif]-->
          <param name="quality" value="high" />
          <param name="wmode" value="opaque" />
          <param name="swfversion" value="6.0.65.0" />
          <param name="expressinstall" value="/Scripts/expressInstall.swf" />
          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
          <div>
            <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </div>
    <!--endheadercontainer-->
    <div id="navigation">
      <table border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><a href="index.html" target="_top" onclick="MM_nbGroup('down','group1','home','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/Home_DOWN.png',1)" onmouseover="MM_nbGroup('over','home','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/home_OVER.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/home_UP.png" alt="Home" name="home" width="80" height="30" border="0" id="home" onload="" /></a></td>
          <td><a href="index_aboutus.html" target="_top" onclick="MM_nbGroup('down','group1','aboutus','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/aboutus_UP.png',1)" onmouseover="MM_nbGroup('over','aboutus','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/aboutus_OVER.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/aboutus_DOWN.png" alt="About Us" name="aboutus" width="80" height="30" border="0" id="aboutus" onload="" /></a></td>
          <td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','depts','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/departments_DOWN.png',1)" onmouseover="MM_nbGroup('over','depts','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/departments_OVER.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/departments_UP.png" alt="Departments" name="depts" width="80" height="30" border="0" id="depts" onload="" /></a></td>
          <td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','sports','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/sports_DOWN.png',1)" onmouseover="MM_nbGroup('over','sports','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/sports_OVER.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/sports_UP.png" alt="Sports" name="sports" width="80" height="30" border="0" id="sports" onload="" /></a></td>
          <td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','resources','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/resources_DOWN.png',1)" onmouseover="MM_nbGroup('over','resources','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/resources_OVER.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/resources_UP.png" alt="Resources" name="resources" width="80" height="30" border="0" id="resources" onload="" /></a></td>
          <td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','guidance','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/guidance_DOWN.png',1)" onmouseover="MM_nbGroup('over','guidance','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/guidance_OVER.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/guidance_UP.png" alt="Guidance" name="guidance" width="80" height="30" border="0" id="guidance" onload="" /></a></td>
        </tr>
      </table>
    </div>
    <!--end#navigationcontainer-->
    <div class="bubble" id="bubble">
      <p>Mission Statement</p>
      <i><p><font size="3">The mission of Belmont High School is to develop contributing
    <br>members of society who are communicators and life long learners.</br></font></p></i>
      <p>Statement Of Purpose</p>
      <i>
      <p><font size="3">Belmont High School establishes a learning environment which promotes intellectual and creative growth and social, emotional and physical development. The professional staff, with the support of the residents of the Shaker Regional School District, recognizes and accepts the responsibility to foster academic excellence in all areas of curriculum and to develop young adults who possess skills, knowledge, and social responsibility. Belmont High School realizes that learning is lifelong and that our goals include present day and lifelong learning opportunities.</font></p>
      <p><a href="http://www.maps.google.com" target="_blank">Directions</a>
        </p>
      </i></div>
    <!-- end #bubble-->
    <div class="content" id="content">
      <div class="left">
      <table width="200" height="421" border="0">
      <tr>
        <td width="65" height="21" align="right" scope="col">Quick</td>
        <td width="125" scope="col">Links</td>
      </tr>
      <tr>
        <td height="42"> </td>
        <td>Teacher Pages</td>
      </tr>
      <tr>
        <td height="42"> </td>
        <td>Student Handbook</td>
      </tr>
      <tr>
        <td height="42"> </td>
        <td><p>Plato (Summer Recovery Program)</td>
      </tr>
      <tr>
        <td height="42"> </td>
        <td> </td>
      </tr>
      <tr>
        <td height="42"> </td>
        <td> </td>
      </tr>
      <tr>
        <td height="42"> </td>
        <td> </td>
      </tr>
      <tr>
        <td height="42"> </td>
        <td> </td>
      </tr>
      <tr>
        <td height="42"> </td>
        <td> </td>
      </tr>
      <tr>
        <td height="42"> </td>
        <td> </td>
      </tr>
      </table>
      </div>
      <div class="center" id="center">
        Welcome to Belmont High School!
        <p>We take pride in our school and our community. This site is your online resource for information about us as well as recent news and upcoming events. </p>
        <p>Located in Belmont, New Hampshire, Belmont High School was built in 1998 and services approximately 467 students.<br />
        </p>
    <p>The student body is made up of students from the towns of Belmont and Canterbury.
    The high school is part of the Shaker Regional School District.</p>
        <font color="#999999"><p>THE CAKE IS A LIE!!!</p></font><img src="images/serving-the-communities.png" width="350" height="30" alt="Serving The Communities Of Belmont And Canterbury" /><br> </br>
        <br> </br>
        This site was created by the students in Mr. Fricks Website Development Course
      </div>
    <!-- end #center -->
      <div class="right" id="right">
    <table width="201" border="0">
      <tr>
        <th width="10" scope="col"> </th>
        <td width="181" scope="col">Announcements:</td>
      </tr>
    </table>
    <ul>
    On Saturday, May 14th from 9am-12:30pm at Bedford High School auditorium there will be a NH MILITARY SERVICE ACADEMY DAY.</ul>
    <ul>Year books are now on sale for $35.00 reserve your copy today.</ul>
    <ul>Senior Breakfast 6/3</ul>
    <ul>Congratulations to Mr. Hill for receiving the 2010 NH JumpStart Teaching Award</ul>
    <ul>The BHS Robotics team qualified for the 2011 VEX Robotics World Championship</ul>
    <ul>Congratulations to Mr. Acquilano " Class M Athletic Director of the Year".</ul>
    <ul>Congratulations to Mr. Wormald on being selected as one of the five finalist for the 2010 Great American Teacher of the Year</ul>
      </div>
    <!-- end #right -->
    </div>
    <!--end #content -->
    </div>
    <!-- end #container -->
    <script type="text/javascript">
    <!--
    swfobject.registerObject("bhs_header");
    //-->
    </script>
    </body>
    </html>

    Browsers add their own default margins and padding to markup elements.  You may want to use a Reset CSS.  Or add a universal selector rule to the top of your CSS code:
    * {margin: 0; padding: 0}
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • CSS Background image

    At
    http://www.robinbachnia.com/index1.htm,
    you'll see the content lies in a table cell. I want the background
    image to be centered in this cell, non-repeat, etc. Can you show me
    what I'm doing wrong, and solution? It will be a template change
    I'll apply, once I get it right.
    Thanks

    This is what you now have in the page -
    body{
    background: url(images/darknia_cssbgd.jpg) center no-repeat
    fixed; }
    the syntax is wrong. It should be -
    body{
    background: url(images/darknia_cssbgd.jpg) no-repeat center;
    (in this shorthand CSS, the repeat style has to come before
    the position
    style, and you do not need the 'fixed' style)
    Making that change will get you EXACTLY what you are
    specifying - a
    background image that sits in the center of the page without
    repeating. Is
    that what you want?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Bushido" <[email protected]> wrote in
    message
    news:fob9ql$4s0$[email protected]..
    > Hi Murray. I moved the style sheet to head of document,
    and uploaded. I
    > still
    > see a white background. Also, the NIA background image
    sits a little too
    > high,
    > you may see. I want it well below the menu. Any ideas?
    >
    http://www.robinbachnia.com/css_bgd_test.htm
    >

  • CSS Background frustrations

    Hi Guys,
    I've come across an issue I regularly have and am determined
    to find out why
    and to solve it.
    Basically, the problem is applying background images to divs.
    Works fine in
    IE but never in FF.
    FireFox takes it's positioning from the top left hand corner
    of the browser
    window (or body tag) and *not* the div to which the style is
    applied.
    Why O Why does it do this. Have I missed something?
    Currently working on the following which demonstrates the
    issue:
    http://www.scstechsolutions.co.uk/06/blank.asp
    I have looked at the CSS Specs and taken a quick tour though
    the newsgroup
    and it would seem that this should work... Don't think it
    likes me :-(
    Many thanks
    Justin

    Good luck, Justin. The observation you made about the
    position of the
    background element when using fixed is exactly the reason why
    IE is the
    outlier, once again.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Justin Reid" <[email protected]>
    wrote in message
    news:[email protected]...
    > That did the job nicely thanks Murray, I didn't know
    that about
    > 'background-attachment:fixed'.
    > As for the background position, I was trying loads of
    things and just got
    > carried away...
    >
    > Many thanks for your help.
    >
    > Justin
    >
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:[email protected]...
    >>> FireFox takes it's positioning from the top left
    hand corner of the
    >>> browser window (or body tag) and *not* the div
    to which the style is
    >>> applied.
    >>
    >> Using 'background-attachment:fixed' on any element
    other than the body
    >> tag is dangerous for this very reason. I'm not sure
    why you want to use
    >> it with this layout, though. And why you are using
    >> 'background-position:inherit' also seems a bit
    strange to me.
    >>
    >> Why doesn't something like this work?
    >>
    >> #container {
    >> width:760px;
    >> margin:0px auto;
    >> height:100%;
    >> background-color:#91948a;
    >> border-right:#75766f 1px solid;
    >> border-left:#75766f 1px solid;
    >> }
    >> #container #head {
    >> background-color: #75766f;
    >> border-bottom:#d4e112 solid 2px;
    >> }
    >>
    >> #content1a {
    >> width:739px;
    >> height:382px;
    >> margin:10px auto;/*just showing where the area is*/
    >> /*background-attachment: fixed;*/
    >> background-image: url(../images/container.gif);
    >> background-repeat: no-repeat;
    >> /*background-position:inherit;*/
    >> }
    >> #content2 {
    >> width:739px;
    >> height:382px;
    >> /*background-attachment: fixed;*/
    >> background-repeat: no-repeat;
    >> background-image: url(../images/crossed.jpg);
    >> }
    >>
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "Justin Reid"
    <[email protected]> wrote in message
    >> news:[email protected]...
    >>> Hi Guys,
    >>>
    >>> I've come across an issue I regularly have and
    am determined to find out
    >>> why and to solve it.
    >>>
    >>> Basically, the problem is applying background
    images to divs. Works fine
    >>> in IE but never in FF.
    >>> FireFox takes it's positioning from the top left
    hand corner of the
    >>> browser window (or body tag) and *not* the div
    to which the style is
    >>> applied.
    >>>
    >>> Why O Why does it do this. Have I missed
    something?
    >>>
    >>> Currently working on the following which
    demonstrates the issue:
    >>>
    http://www.scstechsolutions.co.uk/06/blank.asp
    >>>
    >>> I have looked at the CSS Specs and taken a quick
    tour though the
    >>> newsgroup and it would seem that this should
    work... Don't think it
    >>> likes me :-(
    >>>
    >>> Many thanks
    >>>
    >>> Justin
    >>>
    >>
    >>
    >
    >

  • CSS Background properties

    Hi there and thanx for helping me out.
    I'm having trouble with my background properties in CSS.
    I used CS3's Two Columns, Header & Footer, Fixed template
    to build my
    site.
    I have a background which I want to use. It must not repeat
    and also
    must be fixed and not scroll with the page.
    When using this:
    background-image: url(../graphics/background.jpg);
    background-repeat: no-repeat;
    The image shows perfectly well
    BUT, when adding:
    background-attachment: fixed;
    my background does not appear and has disappeared.
    Can someone please help me? This happens with both FireFox
    and IE.
    Thank you so long.
    Deon

    Try something like this. Good luck, Tom
    table
    margin-top: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: auto !important;
    width: 850px !important;
    height: 100% !important;
    text-align: left !important;

  • CSS background & border graphic confusion

    I'm helping this lady with a few things on her site but don't know how to fix the purple gradient background (http://mabelspralines.com/images/subBGProd.png) to show behind the Products table (table BG stays white) here
    http://mabelspralines.com/_productsFINAL.html   new
    to look like it does here:
    http://mabelspralines.com/products.html     previous
    CSS: http://mabelspralines.com/styles/global.css
    Also the original site had this gold shaded border not just at the top like it is now, but down the sides of the content div and the bottom as part of the footer. Here are the images:
    http://mabelspralines.com/images/vertbg.jpg
    http://mabelspralines.com/images/bottbg.jpg
    I tried a few things, but can't seem to make it display like the original designer intended - one wrong CSS adjustment and the whole thing goes haywire.
    Also, why is there a 1/2" space above the header on each page?
    Thanks for pointing me in the right direction!

    I try to keep things simple.
    Take the footer for instance. At the moment you have
    <div class="footer">
         <ul class="list" id="ftnav">
              <li class="list"><a href="index.html">home</a> |</li>
              <li class="list"><a href="about.html">about</a> |</li>
              <li class="list"><a href="products.html">products</a> |</li>
              <li class="list"><a href="events.html">events</a> |</li>
              <li class="list"><a href="testimonials.html">testimonials</a> |</li>
              <li class="list"><a href="contact.html">contact </a></li>
         </ul>
         <p>&copy; 2009 Mabel's Gourmet Pralines. All rights reserved. Site by SOF Designs</p>       
    </div>
    The above should look like
    <div class="footer">
         <ul>
             <li><a href="index.html">home</a> |</li>
             <li><a href="about.html">about</a> |</li>
             <li><a href="products.html">products</a> |</li>
             <li><a href="events.html">events</a> |</li>
             <li><a href="testimonials.html">testimonials</a> |</li>
             <l><a href="contact.html">contact </a></li>
         </ul>
         <p>&copy; 2009 Mabel's Gourmet Pralines. All rights reserved. Site by SOF Designs</p>       
    </div>
    This reduces the number of keystrokes during development and makes it a lot easier to read. Also a CLASS does everything that an ID does with the exception of uniqueness. Hence I always use a CLASS except where an ID is required for exact identification. The latter is often used in JS and DOM manipulation.
    The style rules for the proposed footer looks like
    .footer {
        background: url(http://mabelspralines.com/images/bottbg.jpg) no-repeat;
        height: 40px;
        padding: 15px;
    .footer ul {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        padding: 0px;
        list-style-type: none;
        margin-left: 238px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    .footer li {
        display: inline;
    When using images as in
    <img src="http://mabelspralines.com/images/home1.jpg" alt="Home" width="82" height="25" border="0" id="home_bt" />
    The red coloured part should be included in the CSS, again reducing keystrokes and making it easier to change the values. But why use (different) images for the menu buttons. If you cannot find a CSS alternative you can use the same image for the menu buttons and use text for the label. This has an added advantage in that your anchor elements are not empty which is frowned upon. Instead of using mouse events, use CSS to replace the image as in
    a
    a:hover
    a:focus
    At this stage I will not give you examples for a better functioning menu, I shall leave it up to you to find out. If you run into trouble, please come back here.
    Have a look at what Nancy does with CSS menu's http://alt-web.com/DEMOS/demos.shtml

Maybe you are looking for

  • Segregation of Vendor line items

    Dear SAP gurus , I have the following requirement.I wants to segregate vendor line items into Opening           Purchases             Payments. Balances. I know how to segregate purchases and payments in my development report. But i want to know how

  • ITunes Help! I can't sync my Ipad Mini Retina to iTunes, it doesn't even come up on the 'choose devices' screen

    I can't work out how to sync my New 'Mini iPad Retina'. I am using the USB cable to attach it to my iPad and the other end into my laptop, i have signed in to iTunes, and i choose 'Devices' But it wont pop up anywhere, even waiting for 10 minutes. I

  • List Help/Authorization

    Hi guys i am trying setup a Authorization scheme for my list menu so that only admin and team managers would be able to enter these pages from my list menu. i have a ruff idea on how to do this and i have created one for admin which doesnt seem to wo

  • Saving in Acrobat shrinks image

    Creat an image in Illustrator 15.0.2 (CS5) and Save As a pdf. Open that image in Acrobat 9.4.6 (CS5). The size indicator in the Acrobat toolbar shows the size to be 78% and it looks correct. It the size is increased to 100% or not, it prints at 78%.

  • IPOD Shuffle does not sync on MacBook

    Hello, I have a very strange problem with my girlfriends iPod Shuffle 2nd Gen.: When I plug it into the MacBook, it takes very long to be reckognized in iTunes. When I try to copy music on it, it also takes long and does not succeed. I tried all sugg