CSS fails to call (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


chiefgringo -> CSS fails to call (4/7/2007 20:21:47)

I have a problem with the following site in that the
<link href="/CSS/standard.css" rel="stylesheet" type="text/css">
will not find the CSS in order to format the text properly on the page.

http://www.ultrabreastsystem.com/ltrsplitub/big-naturals-testimonials.html - view source and u will see what I mean.

I have checked the following url
http://www.ultrabreastsystem.com/CSS/standard.css
and it displays properly.

I have also tried
<link href="../CSS/standard.css" rel="stylesheet" type="text/css">
and it doesn't work either

Tried both firefox and ie - same problem.

Any suggestions on why the line of code fails to call the CSS file?

Thanks, Norm




jurgen -> RE: CSS fails to call (4/7/2007 20:47:34)

Well, the way I see it..... that is why it is called CSS, aka "cascading style sheets" ..... If you are asigning a style in a CSS file and re-asign a different style in your html code the later will be shown. Check your style in your html and assign the class in the code.
You don't have to style it seperatly in the html code, because this will take over whatever you have in the CSS file.....




jaybee -> RE: CSS fails to call (4/8/2007 6:05:54)

Jurgen is correct. The page is calling the standard.css file with no problem. The reason your page isn't using the styles to format is you have more styles in the code itself which are overriding what's in the stylesheet.

If you are going to use css then you MUST stay away from the Format font color etc buttons on the tool bars.

This is what is in your code and overriding the stylesheet.

<P align="center" class="tahoma-teal-b18">"I have been taking the Ultra Breast System now for about 10 months, drinking 3 protein shakes a day, eating tofu, high protein foods and i have gone from a 32C to a 36C..."</P>
        <P class="courier-new12">My name is Stacey and I am a 22 year old mother. I started taking ultra breast before i got pregnant and really enjoyed the results i got in just 2 months. I took a break because i couldn't really afford anything at that time in my life and i was 18. Anyways after having a child and breast feeding, it really ruined my breasts i had small breast to begin with and my breast went up in size alot through breast feeding. Then when i stopped they went back to the same size they were before but they seemed smaller because now they sag which i was very insecure about. I think little saggy boobs look alot worse than big saggy boobs! So i decided now that my fiance and i have good jobs that i would start taking these pills again because there is no way i will ever go get surgery done to help my issue. I have been taking the Ultra Breast System now for about 10 months, drinking 3 protein shakes a day, eating tofu, high protein foods and i have gone from a 32C to a 36C. My breasts have always been fairly round but don't stick out for how round they are so it was very hard to buy bra's that fit properly. Now that my breasts have filled out more i went bra shopping at wal-mart and tried on three bra's and that was the first time in my life that i took home the first three bra's i tried on, it usually took me about five or six before i could find one that fit properly. I was the happiest person in the store that day gauranteed! I am so thankfull that i found the Ultra Breast system it really helps and its natural thats why i feel safe takin this product. thank you to everyone that took the time to formulate such a wonderful product for women who care about having small breasts but not enough to undergo surgery for it!</P>
        <P class="courier-new-b12">Stacey Dykes, Age 22<BR>
          Calgary, Alberta</u></b></font></P></TD>
    </TR>

  </TBODY>
</TABLE>
<P align=center>

<TABLE borderColor=#cccccc cellSpacing=0 cellPadding=20 width="80%" bgColor=#ffffff border=1>

<TBODY>

<TR>

<TD style="FONT-SIZE: 12pt">

<P style="FONT-SIZE: 8pt" align=center><img src="../sites_images/Su_LaSalle_Picture.jpg" width="180" height="150"></P>
<FONT style="FONT-SIZE: 14pt" face=Arial><STRONG>

<P style="FONT-SIZE: 8pt" align=center>




chiefgringo -> RE: CSS fails to call (4/8/2007 10:00:50)

Thanks
I understand what you have said and have experienced that issue, but that is not the case here.

Here is a snip of the code of the first text below the first image in
http://www.ultrabreastsystem.com/ltrsplitub/big-naturals-testimonials.html

<P align="center" class="tahoma-teal-b18">"I have

As can be seen I believe the html is correct in calling the desired style from the CSS stylesheet.
What my problem seems to be is that for some reason the css link code line between <head> and </head> an indicated below for some reason is not working.

<link href="/CSS/standard.css" rel="stylesheet" type="text/css">

The above link, I believe, should call the stylesheet located at:
http://www.ultrabreastsystem.com/CSS/standard.css

It's not doing this - I can't figure out why.

I have taken all the elements of the stylesheet above and put in in this webpage in the traditional manner between begin/end script tags as:
<style type="text/css"> </style>
and it works,
but when I go back to a reliative link, it does not. Obviously something is wrong with the call to the css style sheet, but I am unable to figure it out.
I have other pages with the same link code and they ARE working.
Any assistance is appreciated




jurgen -> RE: CSS fails to call (4/8/2007 11:19:45)

quote:

http://www.ultrabreastsystem.com/CSS/standard.css


You can use this path to your css file

quote:

<link href="/CSS/standard.css" rel="stylesheet" type="text/css">


Or try <link href="../CSS/standard.css" rel="stylesheet" type="text/css">




Tailslide -> RE: CSS fails to call (4/8/2007 14:19:51)

Add in

media="screen"  


to your stylesheet link

On that particular example - there is no class called tahoma-teal-b18 in your stylesheet.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.03125