Jump to content

PicnicTutorials

Advanced Member
  • Posts

    1,108
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by PicnicTutorials

  1. The only links I posted where that in my sig.

     

    The easiest way to do fixed width rounded corners is the make your image in whatever. Then slice it into three pieces. top, mid, bot. Then make 3 divs top, mid, bot. top and bot don't repeat. mid is a 5px peice that repeats-y down the mid div. Any padding will need a 4th div nested in there. Or you can do away with the 4th div by giving the inner elements the padding instead.

  2. Hello,

     

    Trying to make my client side "view source" look nice and formated just as my code view does in my DW. I've figured one way but just seeing if I'm missing something. So currently the include (the code in the HTML page) is tabbed in 3 tabs spaces. When source is viewed, the first line of the include takes on the tabs of the include but the next lines need to be tabbed 3 times to be the same. In other words, currently the first line of each include is not tabbed but all the rest need to be tabbed to match up. Is this the behavior you have found to be true? Or is there some other trick? Or have you never even bothered so you have no idea? Or is my explanation tardo? Thanks!

  3. here is my code...

     

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>{ visibility: inherit; } Sticky Footer!</title>
    <style type="text/css">
    * {
    margin:0;
    padding:0; 
    }
    html, body {
    height:100%; 
    background:#999;
    }
    #wrap {
    min-height:100%; 
    width:1000px; 
    margin:0 auto;
    background:#ddd;
    border:solid;
    border-width:0 1px;
    }
    html:before, #wrap:before { /* Opera and IE8 "redraw" bug fix */
    content:"";
    float:left;
    height:100%;
    margin-top:-999em;
    }
    * html #wrap { /* IE6 workaround */
    height:100%; 
    }
    h1 {
    text-align:center;
    padding:100px 0 200px; /* padding-bottom equals height of #foot */
    }
    #foot {
    height:200px;
    width:1000px;
    margin:-200px auto 0; /* negative margin-top equals height of #foot */
    background:url(images/sticky-foot.jpg);
    }
    </style> 
    </head>
    <body>
    
    <div id="wrap">
    <h1>STICKY FOOT!<br>
    How To/Bug Fixes: <a href="http://www.search-this.com/2009/10/09/css-a-sticky-subject/">Here</a>, <a href="http://www.sitepoint.com/forums/showthread.php?t=611825">Here</a>, & <a href="http://www.sitepoint.com/forums/showthread.php?t=637323">Here</a></h1>
    
    </div>
    <div id="foot"></div>
    
    </body>
    </html>
    

     

    http://www.visibilityinherit.com/code/sticky-footer-demo.php

  4. The second question looks like you should just be able to wrap th logos in a fixed width div and give the div margin auto.

     

    Or actually those logos I imagine are img's. Which is inline. So you could also just give the existing container text align center. Then your HTML just looks like... img img br img img.

  5. Yeah Bactrim is a Sulfa too. Reading leads to gulf war syndrom and cipro side effects are one in the same. Apparently the government bought up 30 mil of cipro and gave it to all the soldiers as a preventative to anthrax. That what it was originally intended for. 16% of people have bad reactions to it yet it remains. Now 20 years later the weaker antibiotics don't work anymore so docs have to go with the big guns for stubborn uti's and such.

  6. I think the fog is starting to lift. I somehow got a uti so had to take biotics. First I tried cipro but it made me badly nauseated with a very bad headache and overall brain fog. Then we tried Bactrim and the same thing. Now I'm on amoxicillin and that one should be fine. This morning for the first time in 7 days I don't feel dead to the world. Still have a very bad headache but im hopefull it will go away. I really felt as if I was being poisoned. Reading around I see there are tens upon thousands of the same complaints with those two antibiotics. Anybody here ever had a bad reaction to one? First for me.

  7. Looking quickly, it looks like you just need like a sticky footer. And take off the padding bottom on the #wrap. If you still need it put it on the body instead.

     

    html, body {

    height:100%;

    }

    #wrap {

    min-height:100%;

    }

    * html #wrap {

    height:100%;

    }

  8. Relative links do work in Wamp or from any other local directory PROVIDED that they aren't root-relative links like you have. If a link is a normal relative link like image.jpg or images/image1.jpg then it works locally but if you start with a / like /image.jpg or /images/image1,jpg the browser goes to the root directory and works from there, which is probably C:\ on your computer with lots of subdirectories before you reach the www directory so the file isn't found. On your host's server the root directory is the first you use.

     

    So if you use root-relative links, always test online.

     

    Edit: I've never set up a virtual host to use Wamp (but I normally use normal relative links, not root-relative links).

     

    Your right! I worded it wrong. When testing in Wamp and having it setup as an Alias relative links in my includes only worked at the root level. As soon as I needed that same include to display the code in a file outside the root it no longer worked. So I needed to use an absolute path (/). Absolute path only works with the Virtual Host setup. In the end almost just as easy. Just took a bit more time to figure out.

  9. Ran into another snag. My relative links in my includes are not resolving correctly. Live on my hosts server simply begining the url with "/" works perfect (eg /img/test.jpg). But not so in Wamp. I havn't tested this yet but I imagine if I were to use an absolute path or possibly my local directories full path (aka my computers path) it would work correctly. This is obviously not the optimal solution. I need to resolve this or I'm back at square one again. I did quite a bit of googling but couldnt find the solution. Have any of you ran into this or can you find the fix? Thanks!

     

    This might possibly be due to the fact that I'm pointing wamp at my website files and they are not sitting in the wamp/www. directory. Possibly?

  10. The developer said that that wasn't the uncompressed version. He is basing that off the error (line 2 character 1856 (or something)). That last test page (ietest.html) was linking to the uncompressed so your guess is as good as mine. "maybe" it was the same named file and your cache wasn't cleared. I thought is was a different name though than the other tests but maybe I was wrong. I think I've decided to the go the images path anyway but I like to see things through.

×
×
  • Create New...