Hack Forums
[Help] Basic HTML + CSS - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5)
+---- Thread: [Help] Basic HTML + CSS (/showthread.php?tid=3760351)



[Help] Basic HTML + CSS - Natalia Poklonskaya - Sep 18, 2013

Can anyone help me with some basic HTML and CSS, just requires a question or two~

Please please, pm me on here, or add my skype
Thanks in advance.


* - g0han - Sep 18, 2013

Post the question here or PM me and I will try to answer it for you


* - SIM-1538688 - Sep 18, 2013

I might be able to help, adding you on skype.

Sorry I wasn't able to help. :c


* - Natalia Poklonskaya - Sep 18, 2013

(Sep 18, 2013 01:04 AM)instxgram Wrote:  Post the question here or PM me and I will try to answer it for you

As requested.

I need to put a CSS tabbed menu onto my website, I have no idea why it's not working, as I followed some websites instructions :((

The website says:
Upload the menu_source folder to the root directory of your website. This is usually where your index.html or index.php file is.

Then
Code
<link href="/menu_assets/styles.css" rel="stylesheet" type="text/css>
Into the header.

Then
Code
<div id='cssmenu'>
<ul>
   <li class='active'><a href='index.html' target='_blank'><span>WebClient</span></a></li>
   <li><a href='#'><span>Download Client (Windows)</span></a></li>
   <li><a href='#'><span>IconicScape Wiki</span></a></li>
   <li><a href='#'><span>Donations</span></a></li>
   <li class='last'><a href='#'><span>Vote</span></a></li>
</ul>
</div>

Into the body..

I have no idea why it's not working. Q.Q


(Sep 18, 2013 01:05 AM)panton123 Wrote:  I might be able to help, adding you on skype.

Sorry I wasn't able to help. :c

Thanks for the attempt, you were really nice :)


* - stevenrfc - Sep 18, 2013

It's hard to tell because you haven't posted your css, there could be more but as far as I can see theres a few things wrong with your stylesheet link.

But try removing the first '/' from your stylesheet path and adding in your ending " for type. Like this
Code
<link href="menu_assets/styles.css" rel="stylesheet" type="text/css" />



* - g0han - Sep 18, 2013

(Sep 18, 2013 08:33 AM)stevenrfc Wrote:  try removing the first '/' from your stylesheet path and adding in your ending " for type. Like this
Code
<link href="menu_assets/styles.css" rel="stylesheet" type="text/css" />

This. Also if this file is in a folder thats not your root folder (/), then the link to get out of the folder and back to root is ../ so the code might need to be, if the files are in two different folders.

Code
<link href="../menu_assets/styles.css" rel="stylesheet" type="text/css" />

Also make sure the stylesheet is called styles.css, as this is normally just called style but your code calls for something called styles


* - Natalia Poklonskaya - Sep 20, 2013

Thanks for the help guys, I finally figured it out, all by myself!

the refference in my heading of the HTML was refeering to /menu_assests, while it was ment to be /menu_source

XDDDD


* - Black‌jack - Sep 20, 2013

(Sep 20, 2013 03:15 AM)meff0 Wrote:  Thanks for the help guys, I finally figured it out, all by myself!

the refference in my heading of the HTML was refeering to /menu_assests, while it was ment to be /menu_source

XDDDD

I was just about to post that, but by chance I hit F5 by accident and saw your post, lol


* - Natalia Poklonskaya - Sep 20, 2013

(Sep 20, 2013 03:16 AM)Black‌jack Wrote:  I was just about to post that, but by chance I hit F5 by accident and saw your post, lol

Lol, I scanned the whole thing for like 15 minutes trying to find what was wrong, and I don't know how but I noticed it :)


* - Black‌jack - Sep 20, 2013

(Sep 20, 2013 03:39 AM)meff0 Wrote:  Lol, I scanned the whole thing for like 15 minutes trying to find what was wrong, and I don't know how but I noticed it :)

Bugs like that can be the most annoying things, especially when it's something like an "l" instead of an "|" buried halfway through 800 lines of code.


* - Natalia Poklonskaya - Sep 21, 2013

(Sep 20, 2013 03:40 AM)Black‌jack Wrote:  Bugs like that can be the most annoying things, especially when it's something like an "l" instead of an "|" buried halfway through 800 lines of code.

I look forward to solving one of them problems, XDXD