Log In · Register

 
 
Closed TopicStart new topic
Stylesheets in all browsers
giraffasaurous
post Jul 2 2007, 06:16 PM
Post #1


Member
**

Group: Member
Posts: 17
Joined: Jun 2007
Member No: 532,062



So I'm trying to mess with stylesheets to hopefully make editing the layout and whatnot on my boyfriend's site a little bit easier. It's working in AOL, and IE, but it isn't in Firefox. How do I get it to work in all browsers?

Any help is appreciated. Thanks. :)
 
*tripvertigo*
post Jul 2 2007, 08:15 PM
Post #2





Guest






what are you trying to do?
 
*phoenixdown*
post Jul 3 2007, 03:29 PM
Post #3





Guest






all browsers? that really isn't neccessary. ie and aol have are about the same. and firefox you can align content good enough so that it still stays aligned in ie.
 
queen
post Jul 4 2007, 12:24 AM
Post #4


‹(. .)›
******

Group: Official Member
Posts: 2,367
Joined: Jun 2004
Member No: 20,089



you probably have some errors in your coding. can we see it?
 
giraffasaurous
post Jul 5 2007, 04:30 PM
Post #5


Member
**

Group: Member
Posts: 17
Joined: Jun 2007
Member No: 532,062



The codes I'm using is here: http://www.freewebs.com/feel-intrigued/escss.css
 
*tripvertigo*
post Jul 6 2007, 12:25 AM
Post #6





Guest






right off the bat, css files do not use <title> tags, or even any html tag really.

you dont need <style type="text/css">, again because its an html tag.


also, before every } you need a ;

try this:

CODE

body  {
    background-color:#000000;
    background-image:url(http://www.freewebs.com/evolution-studios/pattern%5F149.bmp);
    }

table,td  {
    cellspacing: 2px;
    cellpadding: 2px;
    border: 3px double #FFFFFF;
    background-color: transparent;
    }
    
hr {
    width:50px;
    height:25px;
    color:#FFFFFF;
    background-color:transparent;
    border:0px;
    }
  
font,td,div,table,xmp,p {
    font-family:trebuchet ms;
    font-size:12px;
    line-height: 12px;
    color:#000000;
    }

a:link {
    color: #000000;
    border-bottom: 0px dotted #ffffff;
    text-decoration: none;
    font-size: 10px;
    font-weight: normal;
    font-family: trebuchet ms;
    cursor: crosshair;
    }

a:visited,a:active {
    color: #000000;
    border-bottom: 0px dotted #ffffff;
    text-decoration: none;
    font-size: 10px;
    font-weight: normal;
    font-family: trebuchet ms;
    cursor: crosshair;
    }

a:hover {
    color: #FFFFFF;
    border-bottom: 1px solid #9B0505;
    text-decoration: none;
    font-size: 10px;
    font-weight: normal;
    font-family: palatino linotype;
    cursor: crosshair;
    }

a.navigate,a.navigate:active,a.navigate:visited {
    padding:1px;
    color:#FFFFFF;
    font-size:10px;
    display:block;
    margin-top:1px;
    cursor:crosshair;
    line-height:21px;
    border:1px solid;
    text-align:left;
    font-weight:normal;
    letter-spacing:0px;
    font-family:trebuchet ms;
    border: 1px solid #000000;
    text-decoration:none;
    text-transform:none;
    background-image: url(http://www.freewebs.com/evolution-studios/rlinks.jpg);
    }

a.navigate:hover {
    padding:1px;
    color:#FFFFFF;
    font-size:12px;
    display:block;
    margin-top:1px;
    cursor:crosshair;
    text-indent:3px;
    line-height:22px;
    border:1px solid #000000;
    text-align:center;
    font-weight:bold;
    font-style: italic;
    letter-spacing:0px;
    font-family:palatino linotype;
    text-decoration:none;
    text-transform:none;
    background-image: url(http://www.freewebs.com/evolution-studios/rhlinks.jpg);
    }

b, strong {
    font-size: 10px;
    font-family: trebuchet ms;
    color: #9B0505;
    }

u {
    color:#FFFFFF;
    font-family:palatino linotype;
    text-decoration: none;
    font-size:12px;
    border-bottom:3px double #4682B4;
    }
      
i {
    font-size: 10px;
    font-family: palatino linotype;
    color: #FFFFFF;
    }

s {
    font-size: 10px;
    font-family: palatino linotype;
    color: #000000;
    }

.textarea {
    background-color: transparent;
    font-family: trebuchet ms;
    font-size: 10px;
    border:1px solid #000000;
    width:25%;
    height: 15%;
    padding:5px;
    }
    
.sidebar {
    position: absolute;
    border: 0px solid #000000;
    left: 220px;
    top: 263px;
    width: 250px;
    height: 407px;
    overflow: none;
    }

.linkh {
    font-family: palatino linotype;
    font-size: 14px;
    color: #FFFFFF;
    text-align: center;
    border: 1px solid #000000;
    display:block;
    line-height: 14px;
    margin-top:1px;
    width: 249px;
    height: 25px;
    background-image: url(http://www.freewebs.com/evolution-studios/linkheader.jpg);
    }

.content {
    position: absolute;
    left: 473px;
    top: 264px;
    width: 547px;
    border: 1px solid #000000;
    overflow: none;
    background-image: url(http://www.freewebs.com/evolution-studios/rcontentbg.jpg);
    }
    
.contenth {
    font-family: palatino linotype;
    font-size: 12px;
    color: #000000;
    font-weight: bold;
    font-style: italic;
    text-transform: none;
    text-align: center;
    line-height: 12px;
    letter-spacing: 0px;
    background-color: transparent;
    border-bottom: 2px solid #9B0505;
    cursor: crosshair;
    }
 
1angel3
post Jul 9 2007, 05:28 PM
Post #7


Naomi loves you. Y'all may call me NaNa
******

Group: Official Designer
Posts: 2,925
Joined: Jun 2006
Member No: 427,774



Another thing to make sure your layout works in all browser is to try to make sure your layout pass validation.
 
*tripvertigo*
post Jul 11 2007, 08:38 PM
Post #8





Guest






QUOTE(1angel3 @ Jul 9 2007, 03:28 PM) *
Another thing to make sure your layout works in all browser is to try to make sure your layout pass validation.



even if it passes validation, doesnt mean that it will work with every browser. some browsers arent standards compliant themselves (like ie).
 
1angel3
post Jul 13 2007, 01:50 PM
Post #9


Naomi loves you. Y'all may call me NaNa
******

Group: Official Designer
Posts: 2,925
Joined: Jun 2006
Member No: 427,774



^ well it's a start. If you understand your code. More than likely your layout would work in every browser. So try to understand it better and you can find your problems. A validator may pick up a error that is keeping your layout from viewing properly.
 
*tripvertigo*
post Jul 14 2007, 12:25 AM
Post #10





Guest






99% of the time, my shit passes validation and i still have to work an extra 3 hours just to make it cross browser portable.


the validator doesnt hold your hand and tell you everything that's wrong with your code and how to figure it out. this person obviously doesnt understand how external stylesheets work. the validator is not going to help them.

if you dont know what the f**k you're talking about, then dont bother posting.
 
*The Markster*
post Jul 14 2007, 05:30 PM
Post #11





Guest






QUOTE(giraffasaurous @ Jul 5 2007, 02:30 PM) *

What's up with all the "/par"? But yeah, I'd go with tripvertigo's coding, since it's a lot neater too.
 
threepointone
post Jul 19 2007, 11:25 PM
Post #12


Senior Member
****

Group: Member
Posts: 122
Joined: Feb 2005
Member No: 106,057



the \par coding is actually the coding for the RTF format. From what I can see, you probably tried to edit the css file in wordpad--this will only cause trouble for you. Use plain old notepad--the extra formatting codes will only mess up your CSS.

I agree, validation is hardly everything. It'll check that the XHTML is complaint, but compliance with the standards hardly means that it'll comply with how you want it to look. In addition, a lot of browsers *cough*IE*cough* don't follow the standards in the first place.

Usually I find that most CSS is portable across browsers without much work; however, making any specific HTML file to look the same across all the browsers using that CSS file is a completely different story. You might need some custom styles for particular parts of the page for everything to look right in all the browsers.

Big hint for getting everything to look right: if things don't align right with different browsers, try explicitly setting the margin: and padding: values for all the HTML elements involved. In my experince, the default numbers are COMPLETELY different for each browser, and cause all sorts of chaos if you forget about them.
 
Chicago
post Jul 21 2007, 11:02 PM
Post #13


1 2 3 4 5 6
*****

Group: Member
Posts: 788
Joined: May 2007
Member No: 522,043



the coding above is much neater, and looks like it would work!

give it a shot
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: