Domain Discussion Board

Go Back   Domain Discussion Board > Web Hosting & Web Design > Scripts

 
Reply
 
LinkBack Thread Tools Display Modes
CSS HElp
Old
  (#1 (permalink))
shashikant
Senior Member
shashikant is on a distinguished road
 
Status: Offline
Posts: 121
Points: 237.9
Bank: 3,158.1
Total Points: 3,396.0
Donate
Join Date: Apr 2008
Rep Power: 1
CSS HElp - 07-09-2008, 05:51 AM

I need a help


i made a photoshop layout and sliced it and i was trying to convert it into css style when i use div code there is a image breake in it how do i solve it


i ddont want to have gap betwenn images


YOUR LINK IN MY SIGNATURE

10 DDS for A WEEK

AND 30 DDS A MONTH

AND 5 A DAY

MY WEBSITE
MY FORUM
   
Reply With Quote
Re: CSS HElp
Old
  (#2 (permalink))
christyhl
Platinum Member
christyhl is an unknown quantity at this point
 
christyhl's Avatar
 
Status: Offline
Posts: 1,289
Points: 120.7
Bank: 2,582.5
Total Points: 2,703.2
Donate
Join Date: Apr 2008
Location: Next to the computer
Rep Power: 0
Re: CSS HElp - 07-10-2008, 12:20 PM

If you can't find help here, maybe you can go to Yahoo Answers
   
Reply With Quote
Sponsored Links
Re: CSS HElp
Old
  (#3 (permalink))
EnZo
Platinum Member
EnZo is on a distinguished road
 
EnZo's Avatar
 
Status: Offline
Posts: 977
Points: 100.0
Bank: 38,731.2
Total Points: 38,831.2
Donate
Join Date: Aug 2007
Location: Romania
Rep Power: 2
Re: CSS HElp - 07-11-2008, 01:44 AM

maybe you can show us ur css code? my first guess is that u need to setup 0 margins for the mentioned images.


Quote:
Vacation mode: [On] - this means that I'm currently not doing any work so don't even bother contacting me. Basically now I'm just a lazy bastard that likes to post only to earn the easy 5ddp/thread. :D

A mans dreams are an index to his greatness.


http://www.phantomsoftware.org/ - Need a site? We're the ones you're looking for!

   
Reply With Quote
Re: CSS HElp
Old
  (#4 (permalink))
shashikant
Senior Member
shashikant is on a distinguished road
 
Status: Offline
Posts: 121
Points: 237.9
Bank: 3,158.1
Total Points: 3,396.0
Donate
Join Date: Apr 2008
Rep Power: 1
Re: CSS HElp - 07-11-2008, 05:52 AM

here is live demo

html


how can i remove the gap between the images using css please teach me


YOUR LINK IN MY SIGNATURE

10 DDS for A WEEK

AND 30 DDS A MONTH

AND 5 A DAY

MY WEBSITE
MY FORUM
   
Reply With Quote
Re: CSS HElp
Old
  (#5 (permalink))
raja
Platinum Member
raja is on a distinguished road
 
raja's Avatar
 
Status: Offline
Posts: 2,444
Points: 153.6
Bank: 49,346.9
Total Points: 49,500.5
Donate
Join Date: Dec 2006
Rep Power: 4
Re: CSS HElp - 07-11-2008, 07:02 AM

post ur css code or else upload it some where so that we may help u .


Text: 50 ddPoints /Month
or
Text: 15 ddPoints /week
   
Reply With Quote
Re: CSS HElp
Old
  (#6 (permalink))
shashikant
Senior Member
shashikant is on a distinguished road
 
Status: Offline
Posts: 121
Points: 237.9
Bank: 3,158.1
Total Points: 3,396.0
Donate
Join Date: Apr 2008
Rep Power: 1
Re: CSS HElp - 07-12-2008, 08:19 PM

from photoshop i sliced and wanted to convert it in to html i used Div tag and used images as background but when i see in browser i see some gap between div tags how can i remove that gap

here is html code:
<!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>
<title>html</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {color: #FF0000}
.style2 {
font-family: Geneva, Arial, Helvetica, sans-serif
}
.style3 {
font-family: Verdana, Arial, Helvetica, sans-serif
}
-->
</style>
</head>
<div id='wrap'>
<div id="header">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
<div id="navigation">
<p class="style3">Home | Forum | Web Hosting | Web Directory | Templates</p>
</div>
<div id="content">
<p>dghdfghzfdsffffffffffffffffffffffffffffffffffff ffffffffffffffffffffffffffffffffffffff</p>
<p>sdfdsfd</p>
<p>dsffds</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
<div class="style2" id="footer">Home &middot; Forum &middot; Webhosting &middot; Web Directory &middot; Tempaltes | <span class="style1">SRR Website &copy; 2008</span></div>
</div>
</body>
</html>


here is CSS code:
@charset "utf-8";
/* CSS Document */
*{outline: 0; }

#wrap{width:801px;
margin:0 auto;
}
#header{background-image:url(images/header.gif);
height:138px;
position:relative;
width:801px:}
#navigation{background-image:url(images/navbar.gif);
background-repeat:no-repeat;
height:43px;
margin:0 auto;
font-size:95%;
line-height:35px;
text-align:center;
color:#000001;
width:801px;
font-weight:900;}
#content{background-image:url(images/content.gif);
background-repeat:repeat-y;
height:auto;
width:801px;
margin:0 auto;
padding-left:20px;
padding-right:20px;

}
#footer{background-image:url(images/footer.jpg);
background-repeat:no-repeat;
height:87px;
padding:30px;
color:#fff;
text-align:center;
width:801px;
font-stretch:ultra-expanded;
font-weight:700;


i know that u will help me


YOUR LINK IN MY SIGNATURE

10 DDS for A WEEK

AND 30 DDS A MONTH

AND 5 A DAY

MY WEBSITE
MY FORUM
   
Reply With Quote
Re: CSS HElp
Old
  (#7 (permalink))
EnZo
Platinum Member
EnZo is on a distinguished road
 
EnZo's Avatar
 
Status: Offline
Posts: 977
Points: 100.0
Bank: 38,731.2
Total Points: 38,831.2
Donate
Join Date: Aug 2007
Location: Romania
Rep Power: 2
Re: CSS HElp - 07-16-2008, 10:48 AM

ok, managed to fix it. The problem was with your text formatting. You shouldn't add text formats to the navigation/header/content/footer div tags. (you had those with line-height, font-size etc. in the css style IDs of these tags when you shouldn't have had them in the 1st place).

The fix consists in removing those lines and adding classes for each of the elements that use text formatting. (in this case you can notice I added the "#content p" ID at the end of the css file, to format the text in the #content div.
Furthermore I then customized the .style3 class located in the #navigation div which was causing the layout drop in FF3 (Firefox3).

What I recommend is creating the main divs, and afterwards if you want to customize the text or content located in these divs, use customized CSS classes for each of these elements, as in my example when I added the .style3 class at the beginning of the css file/code you provided, to format the navigation text without making visual changes to the whole layout as in the 1st place.

Also you should know that this was only seen in Firefox3(or lower). In IE it displayed correctly because IE parses the classes/divs/styles located in the page differently than the Gecko engine that Firefox uses.

If you have any other questions feel free to ask!

copy/paste this code or study it to see what I've modified.
HTML Code:
@charset "utf-8";

.style3 { 
    font-size:15px;
    margin: 0;
}

#wrap{
    width:801px;
    margin: 0 auto;
    }

#header{
    height:138px;
    width:801px:;
     background-color: red;
    margin: 0;
}
#navigation{
    background-repeat:no-repeat;
    height:43px;
    color:#000001;
    width:801px;
    margin: 0;
}
#content{
    background-image:url(images/content.gif);
    background-repeat:repeat-y;
    width:801px;
    margin: 0;

}
#footer{
    background-image:url(images/footer.jpg);
    background-repeat:no-repeat;
    height:87px;
    text-align:center;
    width:801px;
    }
    
#content p {
    margin: 0;
}
[lateredit]

I may have displaced some of the paths to your background images and such, but I'm sure u can add those back with ease.


Quote:
Vacation mode: [On] - this means that I'm currently not doing any work so don't even bother contacting me. Basically now I'm just a lazy bastard that likes to post only to earn the easy 5ddp/thread. :D

A mans dreams are an index to his greatness.


http://www.phantomsoftware.org/ - Need a site? We're the ones you're looking for!


Last edited by EnZo : 07-16-2008 at 10:52 AM. Reason: ops!
   
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 0.1
Points Per Thread: 15.0
Points Per Reply: 5.0



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 ©2007, Crawlability, Inc.