Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Stylesheet - site appearance

Quote Reply
Stylesheet - site appearance
Just noticed that when page loads from site, most of the time the page "looks" like it has no style sheet - if I refresh the page - stylesheet comes into action & site looks "normal" - using AV template.

url if required is www.choicex.com
Colin Thompson
Quote Reply
Re: [colintho] Stylesheet - site appearance In reply to
Hi,

I've had this before.

Try using a relative or a document path to fetch the style sheet for better efficiency. As the browser is making another trip around the net to fetch this file, it could be tripping up by not downloading the file in time to match the page download time.

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

Or

<link href="av.css" rel="stylesheet" type="text/css">
Quote Reply
Re: [BLOOD] Stylesheet - site appearance In reply to
Thanks.

Where do I make the change?
Colin Thompson
Quote Reply
Re: [colintho] Stylesheet - site appearance In reply to
Using the templates that come with Link SQL and edit these in the admin?

Then see in the admin setup Paths and URLs : build_css_url

In this case, you will need to use the relative path as in:

/av.css

--------------------------------
Privacy Software

Last edited by:

BLOOD: Feb 14, 2003, 11:35 AM
Quote Reply
Re: [BLOOD] Stylesheet - site appearance In reply to
Thanks for the replies.

I have edited a couple of "non Links Sql" generated pages to make sure I have the correct relative path to the stylesheet file, first couple of attempts using "/av.css" & "av.css" didn't work - no stylesheet loaded when viewing these couple of pages.

Used the relative url "/images/av/av.css" - the pages look Ok, I can see that this is the correct relative path to "av.css"

The admin setup Paths and URLs : build_css_url = "http://www.choicex.com/links.css"

do I change this to also read "/images/av/av.css"

The template pages, Do I need to change this url in the template pages eg: home.html

<link href="<%build_images_url%>/av/av.css" rel=stylesheet type="text/css">

Thanks.
Colin Thompson
Quote Reply
Re: [colintho] Stylesheet - site appearance In reply to
Hi,

Just use relative paths with what ever you do.

If your .css is in "/images/av/ then use this throughout like the following.

For non template page: <link href="/images/av/av.css" rel="stylesheet" type="text/css">
For template pages: <%css%> (use this tag only)
In the admin setup Paths and URLs : build_css_url: /images/av/av.css

That should all work Ok.

--------------------------------
Privacy Software
Quote Reply
Re: [BLOOD] Stylesheet - site appearance In reply to
Thanks, appreciate your help.

Template pages like home.html I just replace this tag

<link href="<%build_images_url%>/av/av.css" rel=stylesheet type="text/css">

with <%css%> ?

(just want to make sure I get it right)
Colin Thompson
Quote Reply
Re: [colintho] Stylesheet - site appearance In reply to
Hmm.. looking again, im not sure what the build_css_url is used for - it could actually be redundant so you can just ignore that option.

In this case, then yes, use this tag for the links av templates:

<link href="<%build_images_url%>/av/av.css" rel=stylesheet type="text/css">

--------------------------------
Privacy Software

Last edited by:

BLOOD: Feb 18, 2003, 9:55 AM
Quote Reply
Re: [BLOOD] Stylesheet - site appearance In reply to
BLOOD - really appreciate your help.

is'nt this style sheet tag the same that caused the original intermitant "no style sheet" page load?

I've also emailed GT support to see if they can help Unsure

original link tag
<link href="http://www.****.com/images/av/av.css" rel=stylesheet type="text/css">


changed to this – using the relative path:

<link href="/images/av/av.css" rel=stylesheet type="text/css">

Today I noticed the home page loaded with no stylesheet when I opened the www.****.com site from a google search for “****”

Question:
after searching for style link tag info / should it be like this: <link rel=stylesheet type="text/css" href="/images/av/av.css">


any advice on page load, regarding style sheet, style sheet link tag. Unsure
Colin Thompson
Quote Reply
Re: [colintho] Stylesheet - site appearance In reply to
Well, the code I give you is correct:

<link href="/images/av/av.css" rel=stylesheet type="text/css">

I can see your page just fine in Internet Explorer 6.0 when doing a google search for www.choicex.com.

I don’t know precisely why your browser is not loading the file but my suggestion of using a local path instead of a URL WILL load the file much quicker as a round trip on the net is avoided. Perhaps there is a problem with your browser?

--------------------------------
Privacy Software
Quote Reply
Re: [BLOOD] Stylesheet - site appearance In reply to
Thanks again.

used 3 PC's + laptop, 2 connections (2 accounts with the same ISP - could it be the ISP?)
Colin Thompson