HTML and CSS

@iGimp01 (188)
May 15, 2010 6:03am CST
I have a dreamweaver template which i have edited and i am ready to upload it to webs.com but how do i add the style.css on, i have copied and pasted index.html into it but half the page is missing (the part on style.css) how would i upload that aswell. Thanks
2 responses
@boogerman (1544)
• Philippines
15 May 10
Hello there! You can put the content of your CSS file on the main HTML document. In that way, you only have to upload a single file instead of separate files. There are two ways of doing that but the easier way among the two is by putting the contents of CSS file into the head tag of HTML document, another one is by breaking the CSS and inserting it as attributes to every tag, this is for fixed pages only, the first one is better because it is easier to modify. The concept of making separate documents for HTML and CSS and by linking the two is just to determine which is which so it can be easier to fix. Have a nice day!
@iGimp01 (188)
15 May 10
i tried the first one by putting it between the two head tags but i just got a block of text when i published it http://photo--store.webs.com/index.htm
@boogerman (1544)
• Philippines
15 May 10
I checked your site and I noticed that the contents of your CSS appeared only as text on top of the page. Did you inserted the style tag on the head tag? I can't post HTML tags in proper form but it appears like this. head style type="text/css" (contents of CSS here) /style Just fix the opening and closing tags. If you have done that already, maybe the hosting site where you uploaded the file does not support that style.
@iGimp01 (188)
15 May 10
huh? ive contacted webs and am waiting for a reply...
@slovenc1 (2089)
• Slovenia
15 May 10
You must have the full directory like you must upload index.html+the .css file(look for it where the index is) to the server to work but i don't know if you're able to upload that to the webs.com. Hope it helps