May 16, 2008

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

Free Web Hosting, No Ads > General > Hosted Members Area

free web hosting

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.
Confirm Code:

Recent Queries:-
  1. background no repeat using blue voda - 308.56 hr back.
  2. linkfoot.png - 670.44 hr back.
  3. godaddy css problem - 847.45 hr back.
  4. sidebaritem css - 1074.39 hr back.
  5. .sbilinks li a , .sbilinks li a:hover - 1172.28 hr back.
  6. how to retrieve a banned css account - 1313.14 hr back.
Similar Topics

Keywords : css website ve uploaded html css files css isnt working

  1. 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?...
  2. 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 ......
  3. .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...
  4. Porn Ads Showing On My Website O_o - (13)
  5. 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...
  6. Problems With Outlook Express - My email configuration isn't working (5)
    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....
  7. 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 ...
  8. 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....
  9. 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?...
  10. 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?...
  11. 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?...
  12. 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.)...
  13. 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...
  14. 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...
  15. 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....
  16. 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...
  17. 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....
  18. 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....
  19. 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....
  20. Have There Been Any Changes? - PHP script not working anymore. (1)
    Hi, I was wondering if any changes have been made to the PHP and/or MySQL section at trap 17. All of
    a sudden a PHP script is beginneng to give errors where it never did before. I have a greeting card
    system on my website, and all of a sudden, when I try to add a card I get a load of errors, while I
    have not changed any code. These ar erthe errors i am getting: CODE Warning:
    imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions
    in /home/mrdee/public_html/kaart/admin/classes/class_images.inc.php on line 200 Warning&...
  21. Unable To Access My Site - Inability to access my website from certain network (6)
    I have a problem... My site works ok, and there is no problem with that, BUT... I am unable to
    access my site, my cPanel, and even gamma.xisto.com, from my workplace... I have conntacted my
    ISP's tech support, and they checked everything, and all is fine... But I still can't access
    gamma server... We have a static IP address, so perhaps our IP was banned /blink.gif"
    style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> ? Who can I contact to
    see what's going on? This is becoming frustrating, because I want to put up some files and db, ...
  22. Changes In Phpmyadmin - Access to my database from program not working anymore. (0)
    I was wondering if something has changed in the MySQL or PHPMyAdmin section of Trap 17. (Hope I am
    explaining this correctly). I run a newsletter system on my website and the details of the people
    who subscribed are in a MySQL database. To get those data from the database and to send the
    newsletter to all subscribers I use a program called "Qios Pelican". Up to now it always worked
    perfectly, but now it cannot seem to retrieve data anymore, yet I have not changed anything to my
    setup. I use the MySQL OLEDB Provider driver to connect, and in case it helps, here are the ...
  23. Transferring Files From One Host To Another - Take my site to trap17 (8)
    As I said, I had to move my web site away from Trap17 temporarily because I had ran out of disk
    space. Now, when my upgrade is finalised, I would like to ask for a little assistance. The provider
    I will be moving my site from, back to Trap17 also uses Cpanel, and the admin let me know to do a
    backup and that backup could be simply transferred via FTP to my new provider. The backup includes
    all my files and MySQL data, in other words, the whole web site. It is in a .tar.gz format. How do I
    get all this across? Do I 'unzip' the file and then transfer them bit by bi...
  24. Awstats Not Working - (2)
    When I click into my Awstats, I get the following error: QUOTE Error: Couldn't open config
    file "awstats.leoncreations.trap17.com.conf" nor "awstats.conf" after searching in path
    ".,/home/leonc/tmp/awstats/,/etc/opt/awstats,/etc/awstats,/etc,/usr/local/etc/awstats": No such file
    or directory - Did you use the correct URL ? Example:
    http://localhost/awstats/awstats.pl?config=mysite Example:
    http://127.0.0.1/cgi-bin/awstats.pl?config=mysite - Did you create your config file
    'awstats.leoncreations.trap17.com.conf' ? If not, you can run "awstats_configu...
  25. Ftp Trap17 Account Help Please - cPanel issues and can't upload files (14)
    A few days ago I tried to log into cPanel on my site ( www.liamssite.trap17.com ) and it didnt work.
    Also, whenever I try to upload a file (I use filezilla) I get this: QUOTE Status: Resolving
    IP-Address for liamssite.trap17.com Status: Connecting to 64.69.46.210:21... Status: Connection
    established, waiting for welcome message... Response: 220---------- Welcome to Pure-FTPd ----------
    Response: 220-You are user number 2 of 50 allowed. Response: 220-Local time is now 11:31. Server
    port: 21. Response: 220-This is a private system - No anonymous login Response: 220-...
  26. Html Editor Glitch - (7)
    Three times I've tried using HTML Editor to edit my index.html page and the first 2 times it
    instantly deleted all the page's coding and replaced it with the word "undefined". I noticed
    the 3rd time after editing a page it gives the following message: QUOTE
    %2fhome%2fjoshua%2fpublic_html/index.html File Saved
    -------------------------------------------------------------------------------- open index.html
    failed: Permission denied at cpanel.pl line 469 Carp::croak('open index.html failed: Permission
    denied') called at /usr/local/cpanel/Cpanel/Fi...
  27. Uploading Files And Connecting To Ftp - using WsFtppro (27)
    The fastest, most reliable way to upload or download files is through FTP. If you don't already
    have your own Web page, read our reviews of over 80 free Webhost. If you don't have an FTP
    client, Download WS_FTP Pro now. Step 1 - Connect your computer to the Internet. Step 2 - Launch
    WS_FTP Pro by clicking on the WS_FTP Pro icon that's on your desktop. If you do not have a
    WS_FTP Pro icon on your desktop, click on the Start button and then select Programs, then WS_FTP,
    and then WS_FTP Pro. Step 3 - Connecting to an FTP site: When you open WS_FTP Pro, you&#...
  28. D-22 Shoutbox Not Working [resolved] - HELP!!!!! (3)
    i have just download d-22 shoutbox for my ipb forum, i flowed the instructions exactly and it
    installed. but when i type something into the field and click shout nothing happens. i have
    reinstalled it, gone to the d-scripting website and no-one can fix it but it does work because it is
    here can anyone help??...
  29. Web/ftp Stats Not Working [resolved] - I need help here (2)
    I tried to access my web/ftp stats page and the error below was what I got. Error: Couldn't
    open config file "awstats.microncyber.uni.cc.conf" nor "awstats.conf" after searching in path
    ".,/home/odomike/tmp/awstats/,/etc/opt/awstats,/etc/awstats,/etc,/usr/local/etc/awstats": No such
    file or directory - Did you use the correct URL ? Example:
    http://localhost/awstats/awstats.pl?config=mysite Example:
    http://127.0.0.1/cgi-bin/awstats.pl?config=mysite - Did you create your config file
    'awstats.microncyber.uni.cc.conf' ? If not, you can run "awstats_config...
  30. Problem With My Website Internet Explorer - Aint displaying my web page properly (10)
    I am currently redesigning my website like I mentioned in a previous post (where I complained about
    images not displaying properly and which I have fixed). I have made quite a lot of changes in this
    new design startting from using percent to denote the width of the pages (used pixels previously. I
    dont like this though as it limits the size of the webpage to a specific pixel count on the screen.
    I prefer this since the web browser auto adjusts the size of the web pages based on the screen
    horizontal resolution) to changing a whole lotta things ( redesigned lots of the I...



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

Searching Video's for css, problem, website, ive, uploaded, html, css, files, css, isnt, working,
advertisement



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



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
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