Link Background with CSS

If you look at
this
site and see how all the link boxes, when covered with the
mouse the whole box changes colour, I wanted to know how to do that
with CSS? Because at the moment all I can manage to do is only the
text and not the entire box?

On 24 Feb 2007 in macromedia.dreamweaver, pullher wrote:
> If you look at
>
http://www.nufc.premiumtv.co.uk/page/Home/0,,10278,00.html
and see
> how all the link boxes, when covered with the mouse the
whole box
> changes colour, I wanted to know how to do that with
CSS? Because at
> the moment all I can manage to do is only the text and
not the
> entire box?
Add display:block; to the CSS for the A element, as here:
.menu A {
color:white;
display:block;
background-color:#3E3E3E;
padding:2px 3px 2px 10px;
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/email.php

Similar Messages

  • Linked Image with CSS Hover background Color Jerks in IE8

    Please see http://www.rrmuseumpa.org/about/musviews/index.shtml and hover over any of the five slideshow images, using IE8. Note that the hover causes a jerk when the assigned background color for hover kicks in, apparently by adding some vertical margin at botton. It's fine in all other browsers.
    What I want is for any image that serves as a link to not have a border and to not pick up the default hover background color, and to not cause the "jerk" in IE8.
    CSS file is at http://www.rrmuseumpa.org/css/main.css . Specific css would be most appreciated.
    Thanks.
    Jim

    The very last style rule states
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarHorizontal li.MenuBarItemIE
    display: inline;
    f\loat: left;
    background: #FFF;
    color: #FFF;
    This is a white backgorund and white text. Simply change the background colour to #2565B2
    Gramps

  • Link styles with CSS

    I have a web page with 2 navigations - one horizontal under
    the header and the other located vertically down the left of the
    page.
    The text colour styles of each are different.
    So I wanted to allocate seperate a:link a:visit a:hover
    a:active to both navigations, to do this I have used the following
    css:
    For the horizontal navigation:
    .table2 a:link, a:visited {
    text-decoration:none;
    color:#FFFFFF;
    .table2 a:hover, a:active {
    color: #8da2c4;
    For the second navigation:
    .table3 a:link, a:visited {
    text-decoration:none;
    color: #717578;
    .table3 a:hover{
    color:#333333;
    However when uploaded, instead of the horizontal navigation
    returning to white once visited, it turns grey - the colour of the
    second navigation. The browser (IE) obviously has trouble
    seperating the assigned link styles even though I have tried
    targeting more specifically.
    Does anyone know of a way around this, if there is a way at
    all??!
    Much appreciated

    Pseudo-classes and container styles are what you need - here
    are some
    tutorials.
    http://www.mako4css.com
    http://www.thepattysite.com/linkstyles1.cfm
    http://www.projectseven.com/tutorials/pseudoclasses/index.htm
    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
    ==================
    "(_seb_)" <[email protected]> wrote in message
    news:[email protected]...
    > Lou28 wrote:
    >> I have a web page with 2 navigations - one
    horizontal under the header
    >> and the other located vertically down the left of
    the page.
    >> The text colour styles of each are different.
    >> So I wanted to allocate seperate a:link a:visit
    a:hover a:active to both
    >> navigations, to do this I have used the following
    css:
    >>
    >> For the horizontal navigation:
    >>
    >> .table2 a:link, a:visited {
    >> text-decoration:none;
    >> color:#FFFFFF;
    >> }
    >> .table2 a:hover, a:active {
    >> color: #8da2c4;
    >> }
    >>
    >>
    >> For the second navigation:
    >>
    >> .table3 a:link, a:visited {
    >> text-decoration:none;
    >> color: #717578;
    >> }
    >> .table3 a:hover{
    >> color:#333333;
    >>
    >>
    >> However when uploaded, instead of the horizontal
    navigation returning to
    >> white once visited, it turns grey - the colour of
    the second navigation.
    >> The browser (IE) obviously has trouble seperating
    the assigned link
    >> styles even though I have tried targeting more
    specifically.
    >>
    >> Does anyone know of a way around this, if there is a
    way at all??!
    >>
    >> Much appreciated
    >>
    >
    > change:
    > .table2 a:link, a:visited {
    > to:
    > .table2 a:visited, .table2 a:link {
    >
    > and do the same for .table3 links.
    >
    > --
    > seb ( [email protected])
    >
    http://webtrans1.com | high-end web
    design
    > Downloads: Slide Show, Directory Browser, Mailing List

  • Trouble with css background

    Hey guys, I am having trouble with some code. I have nested divs inside of a container dive for the body copy, but I am having trouble with the background of the container div going behind the nested divs. I only have this issue with the background when I go to float the nested divs.
    Below is a copy of my html and a copy of my linked css style sheet.
    <!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>Welcome to Optimus Lens</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    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_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    <style type="text/css">
    #sector {
         background-repeat: no-repeat;
         background-position: left;
         width: 869px;
         margin-top: -51px;
         margin-right: auto;
         margin-bottom: 0;
         margin-left: auto;
    #oag {
         width: 574px;
         margin-left: 23px;
         float: left;
         /* [disabled]position: relative; */
    #small_col {
         width: 279px;
         margin-right: 23px;
         float: right;
         /* [disabled]position: static; */
    </style>
    </head>
    <body onload="MM_preloadImages('images/home_over.jpg','images/our_mission_over.jpg','images/products_over.jpg','images/news_over.jpg','images/order_over.jpg','images/contact_over.jpg')">
    <div id="CONTAINER">
           <div id="header"><img src="images/header_top.png" width="916" height="39" />
           <img src="images/header_logo.jpg" width="916" height="95" />
          <img src="images/header_image.jpg" width="916" height="266" />
           <img src="images/header_bar.jpg" width="916" height="9" />
    </div>
          <div id="menuContainer">
         <!-- NAVIGATION -->
                    <ul>
                    <li>
                    <img src="images/fold_left_top.png" width="22" height="35" /><img src="images/menu_left.jpg" width="197" height="35" />
                    </li>
                    <li>
                        <div class="menu n1"><a href="index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home','','images/home_over.jpg',1)"><img src="images/home_up.jpg" alt="home" name="home" width="66" height="35" border="0" id="home" /></a></div></li>
                    <li>
                      <div class="menu n2"><a href="mission.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Our Mission','','images/our_mission_over.jpg',1)"><img src="images/our_mission_up.jpg" alt="Our Mission" name="Our Mission" width="124" height="35" border="0" id="Our Mission" /></a></div></li>
                    <li>
                        <div class="menu n3"><a href="products.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Products','','images/products_over.jpg',1)"><img src="images/products_up.jpg" alt="products" name="Products" width="98" height="35" border="0" id="Products" /></a></div></li>
                    <li>
                        <div class="menu n4"><a href="news.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('News','','images/news_over.jpg',1)"><img src="images/news_up.jpg" alt="News" name="News" width="77" height="35" border="0" id="News" /></a></div></li>
                    <li>
                        <div class="menu n5"><a href="order.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Order','','images/order_over.jpg',1)"><img src="images/order_up.jpg" alt="Order" name="Order" width="77" height="35" border="0" id="Order" /></a></div></li>
                    <li>
                      <div class="menu n6"><a href="contact.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Contact','','images/contact_over.jpg',1)"><img src="images/contact_up.jpg" alt="Contact" name="Contact" width="80" height="35" border="0" id="Contact" /></a></div></li>
                    <li>
                      <img src="images/menu_right.jpg" width="197" height="35" /><img src="images/fold_right_top.png" width="22" height="35" /> </li>
                    </ul>
          </div>
           <div id="header_bottom"><img src="images/fold_left_bottom.png" width="22" height="38" /><img src="images/header_bottom.jpg" width="916" height="38" /><img src="images/fold_right_bottom.png" width="22" height="38" />
        </div>
         <div id="bodycopy">
           <div id="sector">
          <img src="images/home/sector_top.png" width="869" height="341" alt="sector frames" />
          </div>
           <p> </p>
           <div id="oag">
          <img src="images/home/oag_join.png" width="574" height="281" alt="save with oag" />
          <p> </p>
          <img src="images/home/bottom.png" width="574" height="132" />
          </div>
          <div id="small_col">
          <img src="images/home/optimize_small.png" width="279" height="132" />
          <p> </p>
          <img src="images/home/intuition_small.png" width="279" height="132" />
          <p> </p>
          <img src="images/home/intuition_small.png" width="279" height="132" />
          </div>
         </div>
        <div id="footer"><img src="images/footer.png" width="916" height="52" />
      </div>
    </div>
    </body>
    </html>body {
         margin: 0px;
         background-image: url(images/background_fade_04.jpg);
         background-repeat: repeat-x;
         background-position: top;
         background-color: #DCDCDC;
         font-family: Arial, Helvetica, sans-serif;
         font-size: 13px;
    #box1 {
         background-image: url(images/bodycopybox_01.png);
         background-repeat: no-repeat;
         background-position: left;
         height: 54px;
         width: 869px;
         margin-top: 0;
         margin-right: auto;
         margin-bottom: 0;
         margin-left: auto;
    #box2 {
         background-image: url(images/bodycopybox_02.png);
         background-repeat: repeat-y;
         background-position: left;
         width: 869px;
         margin-top: 0;
         margin-right: auto;
         margin-bottom: 0;
         margin-left: auto;
    .bodycopybox {
         padding-right: 40px;
         padding-left: 40px;
    .bodycopyboxheader {
         padding-right: 40px;
         padding-left: 40px;
         font-weight: bolder;
         font-family: Arial, Helvetica, sans-serif;
         font-size: 14px;
         color: #21368b;
    #box3 {
         background-image: url(images/bodycopybox_04.png);
         background-repeat: no-repeat;
         background-position: left;
         height: 31px;
         width: 869px;
         margin:0 auto;
    #box4 {
         background-image: url(images/bodycopybox_03.png);
         background-repeat: no-repeat;
         background-position: left;
         height: 31px;
         width: 869px;
         margin:0 auto;
    p {
         margin: 0px;
    #header_bottom {
         width: 960px;
         margin:0 auto;
    #CONTAINER {
         width: 100%;
         margin:0 auto;
    #header {
         width: 916px;
         margin:0 auto;
    #menuContainer {
         width: 960px;
         margin:0 auto;
         height: 35px;
    #menuContainer ul{
         list-style:none;
         height:35px;
         margin:0;
         padding:0;
    #menuContainer li{
         float:left;
         height:35px;
         margin:0;
         padding:0;
    #menuContainer li a{
         text-align:center;
         float:none;
         height:35px;
         margin:0;
         padding:0;
    div.menu{position:relative;}
    .n1{
         width:66px;
         float:left;
         display:inline-block;
         clear:both;
    .n2{
         width:124px;
         float:left;
         display:inline-block;
         clear:both;
    .n3{
         width:98px;
         float:left;
         display:inline-block;
         clear:both;
    .n4{
         width:77px;
         float:left;
         display:inline-block;
         clear:both;
    .n5{
         width:77px;
         float:left;
         display:inline-block;
         clear:both;
    .n6 {
         width:80px;
         float:left;
         display:inline-block;
         clear:both;
    #bodycopy {
         background-color: #FFFFFF;
         width: 916px;
         padding: 0px;
         margin-top: 0;
         margin-right: auto;
         margin-bottom: 0;
         margin-left: auto;
    #footer {
         width: 916px;
         margin:0 auto;
         padding: 0px;

    Try this:
    #CONTAINER {
    width: 900px;
    margin:0 auto;
    background: #FFF;
    overflow:hidden; /**float containment**/
    /**There is no need for #sector division, you can delete it.**/
    #oag {
    width: 574px;
    float: left;
    margin-left: 25px;
    #small_col {
    width: 279px;
    float: right;
    margin-right: 25px;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How to set background ChoiceBox item color to ChoiceBox with css?

    How to set background ChoiceBox item color to ChoiceBox with css?
    I need to change items list backgound color.
    I tried with following code, but it doesnt helps:
    .choice-box .context-menu {
      -fx-backgound-color: red;
    .choice-box .menu-item{
      -fx-background-color: red;

    In Java 8, either of your selectors should work.
    In Java 7 (JavaFX 2.2), you need the following workaround:
    #choice-box-menu-item {
         -fx-background-color: red ;

  • Help with CSS; styling links

    I have a
    #wrapper
    #content
    #content a:link (coding that works fine)
    ..and inside content I want to create some 'buttons' so tried this
    #buttons
    #buttons a:link (different code)
    In Dreamweaver it looks fine and dandy,(left side DW, rightside is a preview)
    but when I test in a browser, fail.
    Uploaded it to the server, fail.
    #content a:link, #content a:visited, #content_full a:link, #content_full a:visited {
        color:#030;
        text-decoration: none;
        line-height: 120%;
    #content a:hover, #content_full a:hover {
        color:#063;
        text-decoration: underline;
        line-height: 120%;
    Basically just turns the links green, with an underline when you hover. There are two types of content divs, one stretches the width of the wrapper... the other allows for a side bar.
    Then:
    #buttons {
        background-color: #FFF;
        margin-top: 8px;
        clear: both;
    #buttons a:link {
        color: #FFF;
        font-size: 18px;
        line-height: 120%;
        background-color: #069;
            margin: 5px;
        text-decoration: none;
    And that fails.
    Thoughts?

    Well, it failed again BUT once again, I think i have the solution. I added code for all states of a:link for the new 'button' (i.e. a:hover, etc..) THAT seemed to fix it.

  • How do I make text fill an oval and then place behind a background layer with CSS

    Hi everyone,
    I created a framed oval picture as a background with drop shadow for my portfolio site.
    See:  www.adjacentdimensionsmedia.com
    Now I want to put text on a clear "glass window/png" that fills an oval that will go inside the frame and I would like it to slide up behind the black background frame, but on top of the image.
    I would like to move the scroll bar so that the text which will be about my services can slide up and fit the ovals you scroll down.
    I tried:
    div class= "circle"
    </div>
    .circle {
    shape-inside:
    polygon (0px 150px)
    and it didn't work.
    I thought I would use Z-axis to get it behind background but I am not sure if that will work.
    any thoughts?

    I had never heard of shape-inside before, so I did some poking around.
    Looks like shape-inside is an experimental feature with little to no browsers supporting it.
    On top of that, as far as I can tell from the documentation about it, a single set of coordinates with the polygon value won't do anything either way. You need at least 3 coordinates with polygon (making a triangle as the minimum). And that is only for the reflow of content, it has nothing to do with the actual shape of the element it's being used on.
    If done correctly, in combination with the border-radius attribute, one could create a circle with a container element, then theoretically use a many sided polygon with shape-inside to force the content of the circular container to take on a relatively circular flow (think octagon in a circle).
    I wasn't able to make any shape-inside settings work in any current browser though.
    EDIT: Actually, I was able to get it to work in Chrome, with the -webkit- prefix and a newly downloaded version of Opera using the standard nomenclature. Definitely not ready for prime time. For shape-outside testing anyway. Shape-inside I still can't get to function in either.

  • Problem with CSS and HTML

    I don't understand what is wrong but I don't see the styles when I preview my html in chrome.
    Here's my CSS
    @charset "UTF-8";
    /* CSS Document */
    html {
              min-width: 768px;
    body {
              font-size: 100%;
              font-family: Arial, Helvetica, sans-serif;
              line-height: 1.5rem;
    .wrapper {}
    img {
              width: 100%; /*All images will be 100% the size of their parent */
    .baseline {
              background-image: url(../images/baseline.svg);
    strong {
              font-weight: bold;
    em {
              font-style: italic;
    /* ----------------------------------------------------------------------------------------- ------------- Masthead */
    .masthead {
              height: 6rem;
              background-color: rgba(51,153,255,1);
              margin-bottom: 1,5rem;
    h1 {
              font-size: 1.5rem;
              color: #9F6;
              position: absolute;
              margin: 2.25rem 0 0 4%;
    /*---------------------------------------------------------------------------------------- --------------------article --*/
    article {
              padding: 0 4% 1.5rem;
    .headline {
              height: 4.5rem;
              margin-bottom: 1.5rem;
              background-colour: rgba(0,0,0,.15)
    h2 {
              font-family:Georgia,"Times New Roman", Times, serif;
              font-size: 2.25rem;
              position: absolute;
              margin: 1.5rem 2% 0;
    .placeholder {
              width: 20%;
              flow: left;
              margin: 0 2.5% 1.5rem 0;
    p {
              margin-bottom: 1.5rem;
    .footnote {
              height: 4.5rem;
              background-color: rgba(0,0,0,.15)
    .footnote p {
              font-size: .875rem;
              position: absolute;
              margin: 1.5rem 2% 0;
    /*---------------------------------------------------------------------------------------- -------------------- Bottom --*/
    .Bottom {
              height: 15rem;
              background-color: rgba(51,153,255,1);
    .bottom p {
              font-sizes: .875rem;
              color; #FFF;
              position:absolute;
              margin: 1.5rem 4%
    Here's my HTML
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Box Model Tutorial</title>
    <link href="box-model/reset.css" rel="stylesheet">
    <link href="box-model/general.css" rel="stylesheet">
    </head>
    <body class="baseline">
    <!-------------------------------------------------------------------------- Masthead -->  
                      <header class="masthead baseline"> <!-- A group of introductory or navigational aids -->
                                    <h1>Victoria</h1>
    <!-------------------------------------------------------------------------- Masthead -->
               <div class="wrapper">
                             <article>
                              <header class="headline">
                                        <h2>Tourism British-Columbia</h2>
                              </header>
                                   <img src="box-model/images/images/British_Columbia_Legislative_Building,_Victoria,_BC_Wallpape r_2c8nm-1.jpg" alt="box-model/images/images/British_Columbia_Legislative_Building,_Victoria,_BC_Wallpape r_2c8nm-1.jpg">
                                    <!-- Don't Forget the alt -->
                                    <p>The capital city of British Columbia, Victoria boasts many historic buildings and some of the most fascinating museums in Western Canada. The city benefits from one of Canada's mildest climates, which allows its residents to pursue outdoor pleasures all year round.
    Victoria enjoys some of the country's most exhilarating scenery: there's an ocean or mountain vista around every corner, while the city's flower gardens are famous the world over. Whether your taste runs to golfing, hiking, biking and fishing or you're more the shopping, dining and theatre type, there are no end of delights for you and your family in Victoria – the city was included in the Top 10 Family Vacations in Canada in the TripAdvisor 2011 Travelers' Choice awards.
    Established in 1843 by James Douglas as a fort for the Hudson's Bay Company, Victoria's British ancestry is apparent in the double-decker buses, horse-drawn carriages, formal gardens, and tearooms. The city is now a cosmopolitan centre with a lively entertainment scene and a wonderful array of attractions.</p>
                   <footer class="footnote">
                                         <p> Article Footer (Related Articles, Footnotes, Authors Bio, etc.) </p>
                                     </footer>
                          </article>
                           </div> <!-- Wrapper Close -->
    <!---------------------------------------------------------------------------------------- -------------Bottom -->
        <footer class="bottom">
                 <p>Main Footer (Copyright, related Links, Legal, privacy, logo, etc.)</p>
        </footer>
    </body>
    </html>

    Lines 6 & 7 of your HTML file (exercise-boxmodel.html), change this:
    <link href="box-model/reset.css" rel="stylesheet">
    <link href="box-model/general.css" rel="stylesheet">
    to this:
    <link href="reset.css" rel="stylesheet">
    <link href="general.css" rel="stylesheet">
    Your CSS files are in the same folder as your .html file. But your original linkage shows that they're within a sub-folder called 'box-model'. That link was returning a 404 Not found error. Hence, the browser was unable to load your CSS files.
    Replace the code and you should be able to view it.

  • Problem with CSS in page I have written [SOLVED]

    There is a php page I have created at work which works fine with Firefox 3.6.
    In one specific page Firefox 4 does not show correctly a table with CSS.
    I tried to remove the css and just have the table with no styling but the problem persists.
    the php file is this:
    <pre><nowiki><html>
    <head>
    <title>Pending Issues Close Case</title>
    <style type="text/css">
    #blinking {text-decoration: blink; text-align:left; color:#FF0000;}
    body {
    background-image:url('on2.jpg');
    background-repeat:no-repeat;
    background-position:700 50;
    background-attachment:fixed;
    #efms
    font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    border-collapse:collapse;
    #efms td, #efms th
    font-size:1em;
    border:1px solid #98bf21;
    padding:3px 7px 2px 7px;
    #efms th
    font-size:1.1em;
    text-align:left;
    padding-top:5px;
    padding-bottom:4px;
    background-color:#A7C942;
    color:#ffffff;
    #efms tr.alt td
    color:#000000;
    background-color:#EAF2D3;
    </style>
    <link rel="stylesheet" type="text/css" media="all" href="jsDatePick_ltr.min.css" />
    <script type="text/javascript" src="jsDatePick.min.1.3.js"></script>
    <script type="text/javascript">
    window.onload = function(){
    new JsDatePick({
    useMode:2,
    target:"date_of_problem",
    dateFormat:"%Y-%m-%d"
    new JsDatePick({
    useMode:2,
    target:"closed_date",
    dateFormat:"%Y-%m-%d"
    function checkEmpty() {
    var date_of_problem = document.save_entries.date_of_problem.value;
    var hour_of_problem = document.save_entries.hour_of_problem.value;
    var min_of_problem = document.save_entries.min_of_problem.value;
    var reported_to = document.save_entries.reported_to.value;
    var problem_description = document.save_entries.problem_description.value;
    var close = document.save_entries.close.value;
    var closed_date = document.save_entries.closed_date.value;
    var closed_hour = document.save_entries.closed_hour.value;
    var closed_min = document.save_entries.closed_min.value;
    var ok = "true";
    var why = "";
    var ok2 = "true";
    var tmp1 = date_of_problem.split("-");
    var date1 = new Date(tmp1[0], tmp1[1], tmp1[2], hour_of_problem, min_of_problem);
    var tmp2 = closed_date.split("-");
    var date2 = new Date(tmp2[0], tmp2[1], tmp2[2], closed_hour, closed_min);
    if (date_of_problem.length == 0) {
    ok = "false";
    why += "Date of problem is empty\n";
    if (reported_to.length == 0) {
    ok = "false";
    why += "Reported to is empty\n";
    if (problem_description.length == 0) {
    ok = "false";
    why += "Problem description is empty\n";
    if (closed_date.length == 0 && close == "Yes") {
    ok = "false";
    why += "Closed date is empty\n";
    if (date2 < date1) {
    ok = "false";
    why +="Closed date cannot be earlier than problem date\n";
    if (ok == "true") {
    return true;
    else {
    alert(why);
    return false;
    </script>
    </head>
    <body>
    <?php
    session_start();
    if (!isset($_SESSION['pending_user'])){
    header("location:main_login.php");
    if ($_GET['entry'] == "" || $_GET['entry'] == NULL)
    header("location:view_entries.php");
    $id = $_GET['entry'];
    function get_entry($id) {
    $mysql_host = "localhost";
    $mysql_user = "portal";
    $mysql_pass = "portal";
    $db_name = "pending_issues";
    $entries_table = "entries";
    mysql_connect("$mysql_host", "$mysql_user", "$mysql_pass") or die("cannot connect to DB" . mysql_error());
    mysql_select_db("$db_name")or die("cannot select DB" . mysql_error());
    mysql_query("set names 'utf8'")or die("fook!" . mysql_error());
    $entry_query = "SELECT * FROM $entries_table WHERE id='$id'";
    $entry_data = mysql_query($entry_query) or die("Cannot execute query");
    $entry_row = mysql_fetch_array($entry_data) or die("Cannot fetch row");
    $date_of_problem = $entry_row['date_of_problem'];
    $time_of_problem = $entry_row['time_of_problem'];
    $hour_of_problem = strtok($time_of_problem, ":");
    $min_of_problem = strtok(":");
    $resp_technician =$entry_row['resp_technician'];
    $reported_to = $entry_row['reported_to'];
    $description = $entry_row['problem_description'];
    $closed_date = $entry_row['closed_date'];
    $closed_time = $entry_row['closed_time'];
    $closed_hour = strtok($closed_time, ":");
    $closed_min = strtok(":");
    $closed_by = $_SESSION['pending_user'];
    echo '<h2><font color="#A7C942">Welcome, ' . $_SESSION['pending_user'] . '</font></h2>';
    echo '<table id="efms">';
    echo '<tr class="alt">';
    echo '<td>';
    echo '<br><a href=index.php>Home</a><br><br>';
    echo '</td>';
    echo '<td>';
    echo '<br><a href=view_entries.php>View entries</a><br><br>';
    echo '</td>';
    echo '<td>';
    echo '<a align="center" href="logout.php">Log out</a><br>';
    echo '</td>';
    echo '</tr>';
    echo '</table>';
    echo '<br>';
    echo '<form name="save_entries" action="save_entries.php" method="post" onSubmit="return checkEmpty();"';
    echo '<table id="efms">';
    echo '<tr>';
    echo '<th>';
    echo 'Problem date';
    echo '</th>';
    echo '<td>';
    echo '<input id="date_of_problem" name="date_of_problem" type="text" value="' . $date_of_problem . '">';
    echo '<input type="hidden" name="entry" value="' . $id . '">';
    echo '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<th>';
    echo 'Problem time';
    echo '</th>';
    echo '<td>';
    //echo '<input name="time\_of\_problem" type="text" value="' . $time_of_problem . '">';
    echo_hour($hour_of_problem, "hour_of_problem");
    echo ":";
    echo_min($min_of_problem, "min_of_problem");
    echo '</td>';
    echo '</tr>';
    echo_reported_to($reported_to);
    echo '<tr>';
    echo '<th>';
    echo 'Problem description';
    echo '</th>';
    echo '<td>';
    echo '<textarea name="problem_description" rows="5" cols="40">' . $description . '</textarea>';
    echo '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<th>';
    echo 'Closed date';
    echo '</th>';
    echo '<td>';
    echo '<input name="closed_date" id="closed_date" type="text" value="' . $closed_date . '">&nbsp;';
    echo 'Close case?&nbsp;';
    echo '<select name="close">';
    echo '<option>Yes</option>';
    echo '<option>No</option>';
    echo '</select>';
    echo '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<th>';
    echo 'Closed time';
    echo '</th>';
    echo '<td>';
    echo_hour($closed_hour, "closed_hour");
    echo ":";
    echo_min($closed_min, "closed_min");
    echo '</td>';
    echo '</tr>';
    //~ echo '<tr>';
    //~ echo '<th>';
    //~ echo 'Closed by';
    //~ echo '</th>';
    //~ echo '<td>';
    //~ echo '<input id="resolve_date" name="resolve_date" type="text" value="' . $closed_by . '">';
    //~ echo '</td>';
    //~ echo '</tr>';
    echo '<tr>';
    echo '<th>';
    echo 'Submit';
    echo '</th>';
    echo '<td>';
    echo '<input name ="submit" type="submit">';
    echo '</td>';
    echo '</tr>';
    echo '</table>';
    echo '</form>';
    mysql_close();
    function echo_hour($hour, $name) {
    echo '<select name="' . $name . '">';
    for ($i = 0; $i < 24; $i++) {
    if ($i < 10)
    $temp_hour = "0" . $i;
    else
    $temp_hour = $i;
    if ($hour != $temp_hour)
    echo '<option>' . $temp_hour . '</option>';
    if ($hour == $temp_hour)
    echo '<option selected>' . $temp_hour . '</option>';
    echo '</select>';
    function echo_min($min, $name) {
    echo '<select name="' . $name . '">';
    for ($i = 0; $i < 60; $i++) {
    if ($i < 10)
    $temp_min = "0" . $i;
    else
    $temp_min = $i;
    if ($min != $temp_min)
    echo '<option>' . $temp_min . '</option>';
    if ($min == $temp_min)
    echo '<option selected>' . $temp_min . '</option>';
    echo '</select>';
    function echo_reported_to($reported_to) {
    echo '<tr>';
    echo '<th>';
    echo 'Reported to';
    echo '</th>';
    echo '<td>';
    //echo '<select name="reported_to" value="' . $reported_to . '">';
    echo '<select name="reported_to">';
    if ($reported_to == "IT") {
    echo '<option selected>IT</option>';
    echo '<option>NetEng</option>';
    echo '<option>VTT</option>';
    echo '<option>NOC</option>';
    if ($reported_to == "NetEng") {
    echo '<option>IT</option>';
    echo '<option selected>NetEng</option>';
    echo '<option>VTT</option>';
    echo '<option>NOC</option>';
    if ($reported_to == "VTT") {
    echo '<option>IT</option>';
    echo '<option>NetEng</option>';
    echo '<option selected>VTT</option>';
    echo '<option>NOC</option>';
    if ($reported_to == "NOC") {
    echo '<option>IT</option>';
    echo '<option>NetEng</option>';
    echo '<option>VTT</option>';
    echo '<option selected>NOC</option>';
    echo '</select>';
    echo '</td>';
    echo '</tr>';
    get_entry($id);
    ?>
    </body>
    </html>
    </nowiki></pre>
    <br />
    The problem is for the table in line 188.
    it should look like this:
    http://img571.imageshack.us/img571/5183/shouldlooklike.png
    but instead it looks like this:
    http://img860.imageshack.us/img860/323/lookslikethis.png
    The same problem appears in IE.
    Thank you,

    Please do not consider my previous post as I found out that it was a coding error, a forgotten ">"
    Thank you.

  • Problem with CSS styles and Previewing in Firefox

    Hello,
    I recently rebooted my Mac OS X system (leopard) and reinstalled Adobe CS3. Before this I had virtually no problems with Dreamweaver and everything was running smoothly. However, now whenever I preview my pages in Safari, the CSS code is completely mangled.
    Also, my site won't preview in Firefox unless I close any existing tabs and exit Firefox completely. I have no idea why these problems are occurring, but I have pasted the code below so any advice would be extemely helpful.
    ---------------------------------html----------------------------------------
    <!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>armed and harmless</title>
    <link href="untitled.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper">
        <div id="nav">
        </div>
    </div>
    </body>
    </html>
    -----------------------------------css-----------------------------------
    @charset "UTF-8";
        background-color: #000000;
        background-image: url(images/header.jpg);
        background-repeat: no-repeat;
        margin: 0px;
    #wrapper {
        height: 800px;
        width: 1000px;
        margin-top: 0px;
        margin-right: auto;
        margin-left: auto;
        background-color: transparent;
        background-image: none;
    #wrapper #nav {
        background-color: transparent;
        background-image: none;
        height: 30px;
        width: 1000px;
        margin-top: 260px;
        clear: both;
        border-top-width: 1px;
        border-bottom-width: 1px;
        border-top-style: solid;
        border-bottom-style: solid;
        border-top-color: #FFFFFF;
        border-bottom-color: #FFFFFF;

    hey there,
    thanks so much for the insight on the firefox issue. hopefully they fix that soon.
    as for the css, i do have a screenshot of what's happening. the background image seems to repeat after the navigation bar instead of keeping the transparent background. it's extremely odd and i've never seen it before. it can be seen in the attached photo.
    thanks again for your help,
    -e

  • Problem with css in creating repeat-y bckgnd

    Hi, I'm trying to put a background that repeats vertically
    below an image at the top of the webpage, so that the top image
    looks like one long continuous line as you scroll down. I selected
    the image at the top of the page, and then inserted the div tag for
    the background image to repeat. I made sure wrap around selection
    was on. In Dreamweaver, you can see the background below the image,
    just where I want it. But when I preview in browser (both Firefox
    and Safari), I don't see the background, just the image at the top.
    Why is the background still invisible??
    Here is my css:
    #bannerright {
    position: absolute;
    top: 0px;
    left: 225px;
    #bg {
    background-image: url(../images/navbar.jpg);
    background-repeat: repeat-y;
    background-position: left;
    left: 0px;
    #bannerleft {
    position: absolute;
    left: 0px;
    top: 0px;
    background-image: url(../images/navbar.jpg);
    background-repeat: repeat-y;
    #backgroundnav {
    position: absolute;
    height: 100%;
    left: 0px;
    top: 0px;
    background-image: url(../images/navbar.jpg);
    background-repeat: repeat-y;
    width: 100%;
    And here is the html:
    <!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=iso-8859-1" />
    <title>Home</title>
    <link href="layout.css" rel="stylesheet" type="text/css"
    />
    </head>
    <body>
    <div id="bannerleft">
    <div id="backgroundnav"><img
    src="../images/banner_lft.jpg" width="225" height="198"
    /></div>
    </div>
    <div id="bannerright"><img
    src="../images/banner_rt.jpg" width="475" height="198"
    /></div>
    </body>
    </html>
    I am using a Mac Book Pro, with Dreaweaver MX 2004. Thanks in
    advance.
    Rose

    Your <div id="bannerleft"> will only be as tall as the
    content within it. In this case you only have an image with the
    height of 198px contained within the div and an image within the
    <div="backgroundnav"> of unspecified height. Therefore the
    background image that you have applied to it will only repeat for
    198px or the height of the navbar.jpg if that image is taller than
    198px. Basically the background image (navbar.jpg) in
    <div="backgroundnav"> will be obscured by the banner_lft.jpg.
    If you want a background image to repeat vertically (y-axis)
    further than the div it contains then you must specify a div of an
    appropriate height or include more content within the contained
    divs to force the height.
    Additionally, absolutely positioned divs take their reference
    point for positioning from their nearest positioned ancestor. In
    the absence of a positioned ancestor the div takes it reference
    point from the html element.
    regards
    Nick Barling
    www.barkingweb.com

  • Using templates with css in mx

    Hi,
    I'm sure I'm being stupid but it's driving me insane - I'm
    weaning myself off table based layout and using css (for the first
    time) in mx. I'm (finally) happy with my stylesheet and how it's
    all looking but can't seem to use css with a template - when I save
    the page as a template and preview the style sheet does not seem to
    be attached.
    Any help MUCH appreciated,
    Katy

    > Good to know about mx as I was thinking about upgrading
    to 8 - does it
    > make
    > like easier with css?
    Very definitely!
    Good grief - your stylesheet is ... big. Usually so many
    custom classes
    mean that the stylesheet is WAY overengineered.....
    I'll take a look though.
    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
    ==================
    "katyoj" <[email protected]> wrote in
    message
    news:[email protected]...
    > Thanks -
    >
    > I've uploaded it here :
    >
    >
    >
    http://kateortonjohnson.bulldoghome.com/pages/kateortonjohnson_bulldoghome_com/i
    > ndex.html
    > & have attached the style sheet to the message
    >
    > Good to know about mx as I was thinking about upgrading
    to 8 - does it
    > make
    > like easier with css?
    >
    > Anyway thanks again
    >
    > Kate
    >
    > /* CSS Document */
    >
    > BODY {
    > margin:0px;
    > padding:0px;
    > font-family: arial, helvetica, sans-serif;
    > font-size: 11px;
    > color: #000;
    > background: #FFF;
    > }
    >
    > /* Link properties */
    >
    > A:link {
    > color: #333;
    > text-decoration: none;
    >
    > }
    >
    > A:visited {
    > color: #913c87;
    > text-decoration: none;
    >
    > }
    >
    > A:active {
    > color: #913c87;
    > text-decoration: none;
    >
    > }
    >
    > A:hover {
    > color: #913c87;
    > text-decoration: none;
    >
    > }
    >
    > /* Main text headings */
    >
    > h1
    > {font-family: tahoma, Arial, Helvetica, sans-serif;
    > font-size:11px;
    > color:#333;
    > text-decoration:none;
    > font-weight:bold;
    > margin:3px 5px 5px 3px;}
    >
    > h2
    > {font-family: tahoma, Arial, Helvetica,
    sans-serif;font-size:11px;
    > color:#154669;
    > text-decoration:none;
    > font-weight:bold;
    > margin:0px 5px 5px 3px;
    > padding:5px 0px 0px 5px;}
    >
    > h3
    > {font-family: tahoma, Arial, Helvetica, sans-serif;
    > font-size:11px;
    > color:#525E6A;
    > text-decoration:none;
    > font-weight:bold;
    > margin:5px 5px 5px 3px;
    > text-align:right;
    > }
    >
    > /* Footer text */
    >
    > .footertext {
    > font-family: tahoma, Arial, Helvetica, sans-serif;
    > margin:0px;padding:15px 0px 5px 0px;
    > font-size:10px;
    > color:#666;
    > }
    >
    > /* Titles */
    >
    > .t3 {
    > font-family:tahoma, Arial, Helvetica, sans-serif;
    > font-size:20px;
    > color:#154669;
    > text-decoration:none;
    > font-weight:bold;
    > }
    > .t2 {
    > font-family: tahoma, Arial, Helvetica, sans-serif;
    > font-size:14px;
    > color:#96968A;
    > text-decoration:none;
    > font-weight:bold;
    > }
    >
    > /* Main body */
    >
    > .maincontent {
    > border-top-style
    otted;
    > border-top-width:1px;
    > border-top-color:#989898;
    > margin:3px 10px 30px 0px;
    > padding:0px 10px 5px 10px;
    > font-family: arial, helvetica, sans-serif;
    > font-size: 11px;
    > color:#333;
    >
    > } .maincontent img {float:left;margin:5px 5px 5px 0px;}
    >
    > .maincontent2 {
    > border-top-style
    otted;
    > border-top-width:1px;
    > border-top-color:#989898;
    > margin:3px 220px 0px 0px;
    > padding:0px 10px 5px 10px;
    > font-family: arial, helvetica, sans-serif;
    > font-size: 11px;
    > color:#333;
    > }
    >
    > .maincontent2 img {float:right;margin:5px 0px 5px 5px;}
    >
    > .lwrap {
    > width:182px;
    > margin-top:15px;
    > margin-bottom:0px;
    > margin-right:auto;
    > margin-left:auto;
    > padding:0px;
    > }
    >
    >
    > /* Left content */
    >
    > .lcontent {
    > border-left-style:solid;
    > border-left-color:#C5C5C5;
    > border-left-width:5px;
    > width:172px;
    > margin:0px 0px 0px 0px;
    > font-family: Arial, Helvetica,
    sans-serif;font-size:11px;
    > color:#666666;
    > text-decoration:none;
    > text-align:left;
    > font-weight:normal;
    > padding:5px 3px 10px 5px;
    > background-color: #EEE;
    > }
    >
    > .leftshadow {
    > width:182px;
    > height:6px;
    > padding:0px;
    > margin-top:0px;
    >
    > }
    > .leftshadow img {padding:0px;margin:0px;float:right;}
    >
    > .separator {
    > border-top-width:1px;
    > border-top-style
    otted;
    > border-top-color:#989898;
    > margin-right:5px;
    > margin-left:5px;
    > margin-top:10px;
    > }
    >
    > /* News boxes */
    >
    > .newsheader{
    > background-image:url(images/left_subh.gif);
    > background-position:top;
    > background-repeat:no-repeat;
    > width:182px;
    > margin-left:auto; margin-right:auto;
    margin-top:15px;margin-bottom:0px;
    > height:17px;
    > text-align:right;
    > padding:1px 5px 0px 0px;
    > font-family: tahoma, Arial, Helvetica,
    sans-serif;font-size:10px;
    > color:#333;
    > font-weight:bold;
    > }
    > .newscell{
    > background-color:#EEE;
    > width:182px;
    > margin-left:auto; margin-right:auto;
    margin-top:-1px;margin-bottom:0px;
    > min-height:30px;
    > font-family: Arial, Helvetica, sans-serif;
    > font-size:11px;
    > color:#666;
    >
    > }
    >
    > .newscell p {padding:5px 5px 15px 10px;margin-top:0px;}
    >
    > /* Right content */
    >
    > .rcontent {
    > background-color:#EEE;
    > width:168px;
    > margin-left:auto;
    > margin-right:auto;
    > border-left-style:solid;
    > border-left-width:5px;
    > border-left-color:#C5C5C5;
    > min-height:30px;
    > margin-top:18px; margin-bottom:0px;
    > font-family: tahoma, Arial, Helvetica, sans-serif;
    > font-size:10px;
    > color:#666;
    > padding:5px 3px 10px 5px;
    > text-align: left;
    > }
    >
    > .rightshadow {
    > text-align:right;
    > width:168px;
    > height:7px;
    > padding:0px;
    > margin-top:0px;
    > margin-bottom:15px;
    > float:right;
    > }
    > .rightshadow img {padding:0px;margin:0px;float:right;}
    >
    > /* Bullet list */
    >
    > ul {
    > list-style-image:url(images/bullet.gif);
    > list-style-type:none;
    > }
    >
    > p img {margin-left:5px;}
    >
    >
    > #wrap{
    > margin:0px;
    > padding:0px;
    > width:100%;
    > }
    >
    > /* Header section */
    >
    > #header{
    >
    > background:#EEE;
    > margin:0px 0px 0px 0px;
    > font-size: 11px;
    > font-family : Verdana, Arial, Helvetica, sans-serif;
    > color : #000000;
    > border-bottom: solid #C5C5C5;
    > }
    >
    > /* Top navigation */
    >
    > #topnav ul
    > {
    > padding-left: 0;
    > margin-left: 5px;
    > margin:0px 0px 0px 0px;
    > background-color: #913c87;
    > color: White;
    > float: left;
    > width: 100%;
    > font-family: arial, helvetica, sans-serif;
    > font-size: 11px;
    > font-weight: bold;
    > height: 18px;
    > }
    >
    > #topnav ul li { display: inline; }
    >
    > #topnav ul li a
    > {
    > padding: 0.2em 1em;
    > background-color: #913c87;
    > color: White;
    > text-decoration: none;
    > float: left;
    > border-right: 1px solid #EEE;
    > }
    >
    > #topnav ul li a:hover
    > {
    > background-color: #C5C5C5;
    > color: #fff;
    > }
    >
    >
    > /* Left positioning */
    >
    > #left {
    > width:191px;
    > margin:0px 0px 10px 0px;
    > padding:0px 0px 20px 0px;
    > background-color:#EBE8DE;
    > border-right-width:3px;
    > border-bottom-width:3px;
    > border-left-width:5px;
    > border-top-width:0px;
    > border-style:solid;
    > border-right-color:#EFEEEE;
    > border-bottom-color:#EFEEEE;
    > border-left-color:#fff;
    > float:left;
    > min-height:15px;}
    >
    > /* Right positioning */
    >
    > #right {
    > margin-left:196px;
    > background-color:#fff;
    > min-height:30px;
    > text-align:left;
    > padding:10px 10px 15px 15px;
    > min-width:560px;
    >
    > }
    >
    > /* Footer positioning */
    >
    > #footer {
    > background-image:url(images/footer2.gif);
    > height:55px;
    > margin:0px 0px 0px 0px;padding:0px;
    > width:100%;
    > min-width:760px;
    > overflow:hidden;
    > clear:both;
    > }
    >
    > #footer img {padding:0px;margin:0px;float:left;}
    >
    > #footer a {
    > text-decoration:none;}
    >
    > /* Right positioning */
    >
    > #rightcol {
    > width:180px;
    > float:right;
    > min-height:30px;
    > background-color:#fff;
    > margin:0px 0px 0px 20px;
    > padding:0px;
    > text-align:center;
    > }
    > /** BOX3 */
    >
    > #box3 {
    > clear: both;
    > margin-top: 20px;
    > padding: 10px 0px;
    > }
    >
    > #box3A {
    > float: left;
    > width: 200px;
    > padding: 0px 13px 0px 43px;
    > background: url(/csstemplatetts/images/homepage20.gif)
    repeat-y right
    > top;
    > }
    >
    > #box3B {
    > float: left;
    > width: 200px;
    > padding: 0px 50px 0px 11px;
    > }
    >
    > #stretch {width:760px;height:1px;clear:both;margin:0px
    0px 10px
    > 0px;padding:0px;}
    >

  • Bg color with css

    I am using a background image and color with css. My image
    looks fine but I can't get the background color I want.
    Here is the code.
    <style type="text/css" title="mystyles"
    media="all">body
    { background-color: #000000;
    background-image: url(../bgimg.jpg);
    color: #5d665b;
    margin-top: 70px;
    margin-left: 120px;
    margin-right: 50px;
    margin-bottom: 70px;
    font-family: Verdana, Geneva, Arial, sans-serif;
    font-size:small;
    line-height: 180% }
    p { text-indent: 3em }
    h3 {color: #966b72; font-family: Georgia, "Times New Roman",
    Times, serif }
    h1 {color: #966b72; font-family: Georgia, "Times New Roman",
    Times, serif }
    </style>
    Thanks for the help.

    Can you provide a link to the site?
    > { background-color: #000000;
    > background-image: url(../bgimg.jpg);
    Are you aware that, without a background-repeat: no-repeat
    rule in the CSS
    rule for the body tag, your background image will tile and
    fill the screen
    so your black background color won't be visible?
    http://www.w3schools.com/css/css_background.asp
    http://www.w3schools.com/css/tryit.asp?filename=trycss_background-repeaty
    http://www.w3schools.com/css/tryit.asp?filename=trycss_background-repeatx
    http://www.w3schools.com/css/tryit.asp?filename=trycss_background-position
    Regards
    John Waller

  • Centering a file in the browser vertically with CSS

    I remember there was an issue doing this with tables and I am
    wondering
    if this is also hard to to with CSS. I would like to center a
    flash
    file, both vertically and horizontally. I have it centered
    horizontally
    but not vertically. This is what I have so far.
    body {
    background-color: #fff;
    margin: 0;
    padding: 0;
    #container {
    width: 800px;
    margin: 0 auto;
    background-color:25231a;
    My flash file is inside of the container in the html file.
    What do I need to do, to get this centered vertically as
    well?
    I tried this, but with no luck.
    #container {
    width: 800px;
    margin: auto;
    background-color:25231a;
    Thank you for any help!
    Brian

    If I don't hear anything positive from Adobe about fixing it,
    I am going to
    be much more vocal.
    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
    ==================
    ".: Nadia :. **AdobeCommunityExpert**"
    <[email protected]> wrote in
    message
    news:[email protected]...
    > It is getting more and more difficult to support such
    posts. I don't have
    > that much time to copy and paste a link,find it's wrong
    and then have to
    > copy and paste again...........
    >
    >
    > --
    > Nadia
    > Adobe� Community Expert : Dreamweaver
    > --------------------------------------------
    >
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    > --------------------------------------------
    >
    http://www.perrelink.com.au
    - Web Dev
    >
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    >
    http://www.adobe.com/devnet/dreamweaver/css.html
    > -------------------------------------------------
    >
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:[email protected]...
    >>I will no longer support posts that contain broken
    links like that.
    >>
    >> --
    >> 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
    >> ==================
    >>
    >>
    >> ".: Nadia :. ACE :."
    <[email protected]> wrote in message
    >> news:[email protected]...
    >>> OMG - nothing against you Excavatorak, but links
    posted via the web
    >>> forum interface come through as an absolute mess
    on the nttp forum :\
    >>>
    >>>
    >>> --
    >>> Nadia
    >>> Adobe� Community Expert : Dreamweaver
    >>> --------------------------------------------
    >>>
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    >>> --------------------------------------------
    >>>
    http://www.perrelink.com.au
    - Web Dev
    >>>
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    >>>
    http://www.adobe.com/devnet/dreamweaver/css.html
    >>>
    >>>
    >>>
    >>>
    >>>
    >>> "Excavatorak" <[email protected]> wrote
    in message
    >>> news:[email protected]...
    >>>> <a target=_blank
    class=ftalternatingbarlinklarge
    >>>> href="
    http://www.jakpsatweb.cz/css/css-vertical-center-solution.html">http://www
    >>>>
    .jakpsatweb.cz/css/css-vertical-center-solution.html</a>
    >>>> <a target=_blank
    class=ftalternatingbarlinklarge
    >>>> href="
    http://milov.nl/code/css/verticalcenter.html">http://milov.nl/code/css/ver
    >>>> ticalcenter.html</a>
    >>>>
    >>>>
    >>>
    >>>
    >>
    >>
    >
    >

  • Is it possible to style a tag button with CSS?

    hello,
    i'm currently using button images for Add to Cart etc. but would prefer to use CSS.
    any idea how the html should look to facilitate this?
    atm if i change it from an image to text, i.e. {tag_addtocart,Add to Cart}, the CSS formatting is ignored and i'm left with just a standard grey button.
    regards and thanks.
    Frank

    For those out there that could use more details on styling the buy button ...
    This works because this CSS overrides the existing Business Catalyst CSS. If you don't already have a separate CCS file, create one - for example "custom.css", and place the link to the CSS isle in you page header.
    Here is the CSS example. The button I've already created for the website is .my-red-btn and I have simply added .productSubmitInput after it so it calls the same style (remember to add the comma if you are applying this style to more than one class name, as I have in this example).
    .my-red-btn, .productSubmitInput {
              color: #ffffff;
            font-weight: 600;
              background-color: #FF0000;
              -webkit-border-radius: 4px;
              -moz-border-radius: 4px;
              border-radius: 4px;
            border-radius: 4px;
    Then add the tag to the module (Site Manager > Modules template > Online Shop Layouts > Individual Large Products) like this:
    {tag_addtocart,Buy me now}
    Good luck.

Maybe you are looking for

  • Personal file sharing turns off by itself

    Hey everyone. My Personal File Sharing keeps turning off on my Mac Pro when I try to access it from my PowerBook. I have tried repairing permissions on both computers and still no luck. Also tried locking the little padlock in the Preferences Control

  • Oracle iStore 11i

    Looking for any information about the major differences between iStore 3i and iStore 11i. How hard is an upgrade? What are the major differences between integration of iStore 3i to Financials and OE and integration of iStore 11i to Financials and OM?

  • Oracle Content Management and JSR 170

    Does anbody know whether latest Oracle Content Management SDK have implemented support for JSR 170? I cannot find this information a anywhere.

  • [jwsc] error: Response wrapper bean names must be unique ?

    I am trying to use wsdlc and jwsc on my existing WSDL file, with "type=JAXWS", I am getting this error "[jwsc] error: Response wrapper bean names must be unique and must not clash with other generated classes" What does it mean? And how can I resolve

  • SAP-dropdown; source and content

    Hi all! I have a question. I'm using PDK.NET2.0, MSSQL and portal 6.40 SP15 How can I set "DataValueField(.NET)" to a dropdown-control without showing it. I am using a stored procedure with two columns. Example: apple orange banana and these have the