Css Problem On Website - I've uploaded the html/css files but the css isn't working/

free web hosting
Open Discussion > General > Hosted Members Area

Css Problem On Website - I've uploaded the html/css files but the css isn't working/

callumms
Help?
I've uploaded all of the html files and css files into the public_html folder , but the css isn't taking effect. I've checked both the css and te html files , nothing wrong with them. Halp me?
www.genesis.trap17.com/home.html
sad.gif

Reply

rvalkass
The directory 'style' doesn't appear to exist. Make sure you created the style directory inside the public_html directory, otherwise it is not publicly accessible.

After a bit more probing it appears that you didn't actually create the style directory you refer to in your HTML. Make that directory and move the two CSS files into it and it should then take effect.

Reply

callumms


QUOTE(rvalkass @ Feb 12 2008, 11:09 AM) *
The directory 'style' doesn't appear to exist. Make sure you created the style directory inside the public_html directory, otherwise it is not publicly accessible.

After a bit more probing it appears that you didn't actually create the style directory you refer to in your HTML. Make that directory and move the two CSS files into it and it should then take effect.

Sorry to sound stupid but how would I do that? I'm a bit new to this =[

Reply

A200
You can make that folder via FTP or cPanel File Manager. And to move the files, you just click it and select the folder you want to move it to smile.gif

Make sure the folder name is ABSOLUTELY THE SAME as where it should be.

I hope that helps smile.gif

Reply

jlhaslip
http://www.genesis.trap17.com/index.html works for me...

Reply

imbibe
Do look the folder structure on your server through CPanel or FTP as pointed out by others. The site isn't displaying correctly on FF.

Reply

callumms
QUOTE(jlhaslip @ Feb 12 2008, 02:06 PM) *

Do the images work? I can't get them going on my Pc =/

Reply

rvalkass
This is again down to your directory structure. In your CSS, you have lines like this:
CODE
background: #FFFFFF url(main.png) repeat-y;


That path, main.png, corresponds to the current directory - /public_html/style/. Of course, there is no file called main.png in that directory. Through a lucky guess I found that it was in a folder called images, which is inside the public_html directory.

To represent this in your CSS, you need to use the sequence of characters that means "go to the previous directory". That sequence of characters is

../

So, to get from the styles directory to the images directory, we need to go up one level to the public_html directory, then into the images directory, then finally we can find main.png

This means your code needs to actually say:
CODE
background: #FFFFFF url(../images/main.png) repeat-y;


That needs to be changed for every path to an image in the CSS file colours.css. For your benefit, I've done that below. Just put the code below in your colours.css file instead of the code that is there at the moment:
CODE

body
{ background: #FFFFFF url(../images/back.png) repeat;
color: #57696F;
}

blockquote
{ background: #FFFFFF;
color: #57696F;
border-color: #1798E9;
}

#main
{ background: #FFFFFF url(../images/main.png) repeat-y;
color: #57696F;
}

#links, #footer
{ background: #1798E9 url(../images/linkfoot.png);
color: #FFFFFF;
border-color: #57696F;
}

#links a, #footer a, #links a:hover, #footer a:hover
{ background: transparent;
color: #FFFFFF;
}

#logo
{ background: #FFFFFF url(../images/logo.jpg) no-repeat;
color: #57696F;
border-top-color: #57696F;
border-bottom-color: #1798E9;
}

#logo h2
{ background: transparent;
color: #CCC;
}

h1
{ background: transparent;
color: #1798E9;
border-color: #E1E1E1;
}

#menu
{ background: transparent;
color: #57696F;
}

#menu li a
{ background: #76C9F8;
color: #57696F;
border-color: #109CEF;
}

#menu li a:hover, #menu li a#selected, #menu li a#selected:hover
{ background: #109CEF;
color: #FFFFFF;
}

#content, #column2, #column2 a
{ background: #FFFFFF;
color: #57696F;
border-color: #57696F;
}

#column2 a:hover
{ background: #FFFFFF;
color: #1798E9;
border-color: #1798E9;
}

.sidebaritem
{ background: #F9F9F9;
color: #57696F;
border-color: #E1E1E1;
}

.sbilinks li a, .sidebaritem a
{ background: transparent url(../images/link_arrow.png) no-repeat left center;
color: #57696F;
}

.sbilinks li a:hover, .sidebaritem a:hover
{ background: transparent url(../images/link_arrow_sel.png) no-repeat left center;
color: #1798E9;
}

input, textarea
{ background: #FFFFFF;
color: #57696F;
border-color: #E1E1E1;
}

 

 

 


Reply

callumms
QUOTE(rvalkass @ Feb 12 2008, 09:19 PM) *
This is again down to your directory structure. In your CSS, you have lines like this:
CODE
background: #FFFFFF url(main.png) repeat-y;


That path, main.png, corresponds to the current directory - /public_html/style/. Of course, there is no file called main.png in that directory. Through a lucky guess I found that it was in a folder called images, which is inside the public_html directory.

To represent this in your CSS, you need to use the sequence of characters that means "go to the previous directory". That sequence of characters is

../

So, to get from the styles directory to the images directory, we need to go up one level to the public_html directory, then into the images directory, then finally we can find main.png

This means your code needs to actually say:
CODE
background: #FFFFFF url(../images/main.png) repeat-y;



That needs to be changed for every path to an image in the CSS file colours.css. For your benefit, I've done that below. Just put the code below in your colours.css file instead of the code that is there at the moment:
CODE

body
{ background: #FFFFFF url(../images/back.png) repeat;
color: #57696F;
}

blockquote
{ background: #FFFFFF;
color: #57696F;
border-color: #1798E9;
}

#main
{ background: #FFFFFF url(../images/main.png) repeat-y;
color: #57696F;
}

#links, #footer
{ background: #1798E9 url(../images/linkfoot.png);
color: #FFFFFF;
border-color: #57696F;
}

#links a, #footer a, #links a:hover, #footer a:hover
{ background: transparent;
color: #FFFFFF;
}

#logo
{ background: #FFFFFF url(../images/logo.jpg) no-repeat;
color: #57696F;
border-top-color: #57696F;
border-bottom-color: #1798E9;
}

#logo h2
{ background: transparent;
color: #CCC;
}

h1
{ background: transparent;
color: #1798E9;
border-color: #E1E1E1;
}

#menu
{ background: transparent;
color: #57696F;
}

#menu li a
{ background: #76C9F8;
color: #57696F;
border-color: #109CEF;
}

#menu li a:hover, #menu li a#selected, #menu li a#selected:hover
{ background: #109CEF;
color: #FFFFFF;
}

#content, #column2, #column2 a
{ background: #FFFFFF;
color: #57696F;
border-color: #57696F;
}

#column2 a:hover
{ background: #FFFFFF;
color: #1798E9;
border-color: #1798E9;
}

.sidebaritem
{ background: #F9F9F9;
color: #57696F;
border-color: #E1E1E1;
}

.sbilinks li a, .sidebaritem a
{ background: transparent url(../images/link_arrow.png) no-repeat left center;
color: #57696F;
}

.sbilinks li a:hover, .sidebaritem a:hover
{ background: transparent url(../images/link_arrow_sel.png) no-repeat left center;
color: #1798E9;
}

input, textarea
{ background: #FFFFFF;
color: #57696F;
border-color: #E1E1E1;
}

That still doesn't work. I replaced the old Css file but it still doesen't work =/
sorry if I'm sounding stupid

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. i already uploaded my website files on my domain hosting site, why the url doesnt appear, but just the index? - 554.52 hr back. (2)
  2. i already uploaded my website files on the web hosting site. why it doesnt work when i type my url. it only appears as index on the screen. - 747.14 hr back. (3)
  3. web site index problem boxes - 913.14 hr back. (1)
  4. 1798e9 color - 1134.75 hr back. (1)
Similar Topics

Keywords : css, problem, website, ive, uploaded, html, css, files, css, isnt, working,

  1. How To Transfer Files Directly From My Computer To The Trap17 Account
    (6)
  2. Mysql Database Not Working
    (3)
    well i'm getting an error message(a databass connection warning) for all of the parts of my site
    that connects to a mysql database i check my database users pertmissions and i try to do the repair
    database thing and it's still not woeking. am i the only person having this or is it an overall
    trap17 issue and how do i fix it.....
  3. I Cannot See My Website Or Log Into Cpanel
    (7)
    Ok, I finally got my form approved after that massive wait because of some issue and now, my
    computer decides not to load up my site! - My site does not load up on either browser, I cannot
    ping it (but it resolves the IP) - It loaded ONCE. And never after that - It's not my network, I
    used my neighbors wireless to verify that Can anyone help me? PS. I am samlockart.trap17.com....
  4. Gallery Not Working
    (2)
    Alright, the Gallery module from Fantastico always used to work for my site. Now it's suddenly
    stopped functioning and I can't even access the control panel for it. My Iframe page linking to
    it gives one long error message: QUOTE Error Error (ERROR_STORAGE_FAILURE) : * in
    modules/core/classes/GalleryStorage.class at line 226 (GalleryCoreApi::error) * in
    modules/core/classes/GalleryStorage.class at line 453 (GalleryStorage::_getConnection) * in
    modules/core/classes/Gallery.class at line 202 (GalleryStorage::search) * in
    modules/core/classes....
  5. I Can && Cannot Acces My Website
    Confusing issue. (5)
    I am a hosted member in trap17 and my domain is www.karunya.cc . I have been not able to access my
    website for few days and i had PM'd the admin and he provided me great support,but still i have
    some confusion , so please anyone help me . My domain was now accessible using my true IP . On the
    other hand if i use a Proxy i am able to access my website , so i had given my true IP's
    220.225.140.98, 210.212.244.4 to Xisto to check whether they are in the IP ban List in Xisto
    firewall , the internet im using is provided by my college and im sure here there is not ....
  6. Backup Not Working [resolved]
    (5)
    I am trying to backup my files on my account(in preparation for the next server disaster), and I am
    unable to download it. In my CPanel I goto the back-up screen to generate a full backup. Once
    that's done and its ready to be downloaded, It only downloads to 13% or 50mb before stopping.
    With and without a download manager. It doesn't help that resume is not supported in download
    managers. I have too many files on my account to backup with an FTP client, that would take hours
    and hours. What can I do to get a backup of my account?....
  7. File Manager Not Working
    (2)
    When I goto upload files using the file manager(legacy mode), the files do not upload correctly.
    Every time I try to upload a file, it takes the time to upload it, but the file always comes out
    being 0kb so it does not upload the file. Why is this happening?....
  8. I Am Looking Into Going With A Paid Hosting Service And Trap17 Has Been Good To Me So Whats The Paid Hosting's Website?
    (7)
    I am looking at different solutions for paid hosting and I know that that trap17 has some connection
    with a paid hosting company and I would like more info about it because I like the way this place is
    run and it has been a good place to have my website. So what is the site for the paid hosting?....
  9. Porn Ads Showing On My Website O_o
    (13)
    ok.. so i have a thing to look exesevely at my website.. & the hell.. like 4 times already a random
    porn add shows up a hot babe is waiting for you, or something like that. i dont know whats wrong,
    if something hacked my website, and added that, or if its my computer, with some nasty virus again
    o.o anywho, yea, i tried doing some research and nothing shows up!!!! help?....
  10. Need Help With Masking A Website
    (9)
    Ok, so I'm having a problem with my website and several hours of scouring Google has done me no
    good towards finding a solution. So, on to my problem. I got hosting here, thus
    www.thewheeldeal.trap17.com was created. I then bought a domain from GoDaddy, and had it so that it
    was masked to www.maliciousintent.net. My problem however is that no matter WHERE you are on the
    website, "www.maliciousintent.net" still shows in the address bar. This makes it difficult for
    people to link directly to content, and I feel that would be a huge hindrance once it picks up. Ca....
  11. My Website Takes Ages To Load
    (18)
    Is it just me or is my website taking a very long time to load? http://www.princesstimes.com It
    usually loads very quickly previously, and I haven't added anything to it recently to cause it
    to take a long time to load.....
  12. Can't Post In Website Discussions? [resolved]
    (3)
    It seems I can't start a new thread. I started a thread named: Best Websites With the message:
    QUOTE http://www.thefwa.com/ Brillant site, I've looked at alot of the winners and
    i'm in amazment in how good they are. Best that i've seen is the Halo 3 Believe website,
    very indepth and detailed. Check that site out for inspiration and that. Any suggestions?....
  13. Www Vs. Public_html [resolved]
    (3)
    I didn't know where to post this..... this category seemed about as good a fit as there was. on
    most webservers (my trap 17 one included), there is a public_html folder and a www folder, anything
    uploaded into one also gets put in the other. so i am wondering what is the point of both of these
    folders? can someone tell me why each one exists?....
  14. How Do I Include A Php Sidebar In My Website?
    This is a question about PHP... (5)
    (If I am posting this in the wrong forum, please tell me the correct place to be putting it.) I
    want to install a global announcement banner on the top my website, in case there is some major
    update. I am currently learning PHP for this very purpose, and would like to ask how it is made. (I
    know how the HTML layout is going to look like, I just want to be able to actually include the PHP
    portion on the website.) I heard it had something to do with includes in PHP... how exactly does
    this work?....
  15. Where Do I Upload My Ftp Files? [resolved]
    As in, which directory? (1)
    I recently got approved for hosting. I have an account right now, but I don't know which
    directory to post my FTP stuff in. (I don't know if this is in support or not; the search
    results didn't return anything.) I remember with my last host that had CPanel that you had to
    upload it into the "public_html" folder. So I do that, or do I just upload it into the root
    directory? Thanks in advance! (EDIT: Oh, never mind, it is /public_html.)....
  16. The Cgi Centre In Cpanel Isn't Working!
    (4)
    I was just randomly accessing the cPanel today and when I tried accessing the 'CGI Centre'
    It gives me this error message CODE <!-- Let's Not see the results of the install
    of cgiemail ... safeunlock: Invalid arguments at /usr/local/cpanel/SafeFile.pm line 91.
    SafeFile::safeunlock(undef) called at /usr/local/cpanel/Cpanel/FileUtils.pm line 331
    Cpanel::FileUtils::safecopy('/usr/local/cpanel/cgi-sys/randhtml.cgi-wrap'
    ;, '/home/obelisk/public_html/cgi-bin/randhtml.cgi') called at /usr/local....
  17. My Subdomain Not Working
    imbibe.in (3)
    I have a addon domain in my account (ramansingla.info): imbibe.in All subdomains on imbibe.in work
    fine but one. ike.imbibe.in isn't working. It's more than 24 hrs that I created it. Also
    when I tried to change Nameservers for ramansingla.info at GoDaddy for Primary Nameserver I entered
    NS.COMPUTINGHOST.COM & GoDaddy said Invalid. Kindly help as it is urgent. Thanks & resolved .......
  18. My Website Is Down [resolved]
    (4)
    My account went below 0 credit and so, my account got suspended, however, I posted on the forum and
    my account is now above 5 credits. yet my website still shows the page saying I'm suspended. Is
    my account suppose to get re-activeted by itself, or am I suppose to do something else to
    re-activate it. ?? The website link is: http://wise37.omarali.us/ Thank you....
  19. My Website Is Down [resolved]
    ramansingla.info (4)
    Hi, My website is down. Domain: ramansingla.info I am certain that it's a problem from your
    end as I have checked this from multiple online servers that my site isn't accessible. I
    haven't changed anything. All of a sudden it was no where.....
  20. Website Is Down [resolved]
    (1)
    Ahh is this happening to anyone else? my site have-heart.net is down again.. but yea.. i checked
    namecheap (where i bought the url and everything is set up just fine) my site just went bye bye
    about an hour ago.. ns1.trap17.com ns2.trap17.com ns3.trap17.com are there and everything. i have
    enough bandwith.. and enough credits by the way nevermid my site came back magicly /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> topic closed....
  21. Website Not Loading?
    (31)
    This happened yesterday, and now today. I can't connect to my website. The URL is:
    http://www.brutalwarfare.trap17.com/ I get the "Problem Loading" page.....
  22. Bandwidth Counter Not Working
    (17)
    In my CPanel, the bandwidth counter is constantly at 0, it never changes. I can never see how much
    bandwidth I've used this month. My awstats never work also, so i have no idea how much traffic
    is coming through my site. Does anyone know how I can fix my bandwidth counter? Thanks.....
  23. .php?id=html Not Working
    (15)
    I use a single php file for all my tag decorations and image calling so that each page is lighter
    and therefore isn't bogged down with the same repeated code over and over, which allows me not
    only to much easier change my layout and design (as I often do) but once I've finally gotten it
    up and working here, I realized none of the links work, I doubled, and triple checked them over and
    over again to make sure I wasn't making a mistake. I swore trap17 supported php, so why
    isn't it working? Am I missing some sorta code that i need to add, or need to take a....
  24. Toolbar Not Working (adobe Dreamweaver)
    I dont know why but it doesnt link. (7)
    See, my toolbar is made up of 8 buttons. They are: Home | Lessons | Theory | Links Videos| Extras
    | Forums | Feedback To make my website, I use adobe Dreamweaver CS3. if youve ever used it, youll
    know that if you want to make an image a link, you need to click it and fill in the link box at the
    bottom and then make the border 0. The annoying thing is, lets say I type in in the link box for
    Home "index.html". Then, I take a look at lessons. Suddenly, that box is filled with index.html
    too! So, I quickly change that box to lessons.html. But then (this is where the ....
  25. Upload Script To Transfer Files From Laptop To Desktop
    (3)
    Would it be allowed to have an upload script to transfer text files (homework) from laptop to
    desktop? Because my printer is set up from my desktop, and most of my homework is done on my laptop.
    So would this be allowed? Thanks.....
  26. Html To Php Convertor?
    (12)
    Hey.I have made a simple website http://pakdir.com this is in html.But its very difficult to
    update the html pages.I want to convert it to php site.But i dont know about php language ... is
    there any "PHP website builder" ?? is there anyway to build a php website without knowledge of php ,
    with the help of some program ? for example there is a frontpage for html etc.Please tell me any
    solution?....
  27. Problems With Outlook Express
    My email configuration isn't working (7)
    Does anyone have a clue as to why my outgoing email isn't working with Outlook express? I can
    get incoming mail, but I'm getting an error when I try to send email. I followed the
    configuration instructions, but it still isn't working correctly. I get an error everytime.....
  28. My File Manager Is Working
    (2)
    I tried to change the html for my site in file manager but it just has the default page - the one
    when you activate your site. /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' />
    How do i change files?....
  29. Html Tag For A Code Box
    Where You Put HTML Code For Your Users (4)
    Well I have seen it all over the web. Lots of sites have code boxes so you can promote them or they
    show you a code you can use for javascript and stuff like that. I would like to know the HTML code
    for those boxes. Thanks in advance for your help.....
  30. Blank Images - (white Square W/red X)
    FTP uploaded images don't display (8)
    Hey Guys, PROBLEM: Uploaded website & all images display as blank white box with red X on the
    webpages. Tech Info: Am using domain hosting (not subdomain hosting) All my html pages are in
    folder "public_html". All my images are present in folder named "userfiles". Both folders are "root"
    on the server in my cpanel (ie. not in subfolders). The html code on my webpages "pointing"
    (incorrectly???) to the images is: QUESTION: 1) Whats up??? 2) Is this html 3) Does the Xisto
    server require that images only be placed in a specific folder OR subfolder in order to display....

    1. Looking for css, problem, website, ive, uploaded, html, css, files, css, isnt, working,

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for css, problem, website, ive, uploaded, html, css, files, css, isnt, working,

*MORE FROM TRAP17.COM*
advertisement



Css Problem On Website - I've uploaded the html/css files but the css isn't working/



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE