1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

I want to convert THIS site

Discussion in 'CSS' started by PhilGlass, Feb 29, 2008.

  1. ChaosFoo

    ChaosFoo Peon

    Messages:
    232
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #21
    Since you are new to CSS, this is a piece of advice that I would remember. This can be used to save you headaches on just about any site. I include it in all of my CSS files.
     
    ChaosFoo, Mar 4, 2008 IP
  2. PhilGlass

    PhilGlass Guest

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #22
    ok , well you guys are going to get sick of me.
    well first off thanks chaosfoo that helps alot,

    second, i hit another problem. check it out, http://typh.ca/pstemp/cssindex.html the link's don't lead anywhere just to warn you. but the problem i'm havin is in firefox, In the code between my first image and teh rest i put a <br> to put the rest of teh images below that one. the images however seperate completely showing a gap , where as i don't want a gap they need to be flush. so I set border padding and margin to 0px and border to none, but the gaps are still there

    please help, and again i'm sorry to bother everyone, I tried googleing teh answer but could not find it.

    thanks again
    phil.
     
    PhilGlass, Mar 5, 2008 IP
  3. donross

    donross Active Member

    Messages:
    90
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    98
    #23
    i dont use that one.. but im not having problem with my codes... whats that for anyway??
     
    donross, Mar 5, 2008 IP
  4. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #24
    Well I fixed the top part but screwed up the bottom :)

    Changed the top section to this:
    
    <div id="pagetop">
    
    <img src="cssindex_files/01links_01.jpg" height="39" width="761">
    
    <div>
    <img src="cssindex_files/01links_02.jpg" height="39" width="185">
    <a href="http://typh.ca/index.php"><img src="cssindex_files/01links_03.jpg" border="0" height="39" 
    
    width="36"></a>
    <a href="http://typh.ca/contactus.php"><img src="cssindex_files/01links_04.jpg" border="0" height="39" 
    
    width="67"></a>
    <a href="http://typh.ca/testimonials.php"><img src="cssindex_files/01links_05.jpg" border="0" height="39" 
    
    width="78"></a>
    <a href="http://typh.ca/measuring.php"><img src="cssindex_files/01links_06.jpg" border="0" height="39" 
    
    width="66"></a>
    <a href="http://typh.ca/install.php"><img src="cssindex_files/01links_07.jpg" border="0" height="39" 
    
    width="76"></a>
    <a href="http://typh.ca/links.php"><img src="cssindex_files/01links_08.jpg" border="0" height="39" 
    
    width="39"></a>
    <a href="http://typh.ca/faq.php"><img src="cssindex_files/01links_09.jpg" border="0" height="39" 
    
    width="26"></a>
    <img src="cssindex_files/01links_10.jpg" height="39" width="187">
    </div></div>
    
    
    Code (markup):
    Only change in the style was adding:

    div, img{
    padding:0;
    margin:0;
    }
    div img {
    float:left;
    }

    Odds are you can use IDs to reduce the damage to the lower half. Maybe it'll help get you back on track.
     
    shallowink, Mar 5, 2008 IP
  5. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #25
    You mean the star trick * { padding:0; margin:0; } >???

    It resets everything to 0 padding and margin. Another trick is to put border: solid black 1pt; and it will outline the entire page.
     
    shallowink, Mar 5, 2008 IP