/    Sign up×
Community /Pin to ProfileBookmark

Good CSS & HTML doesn’t work. [HEADACHE AWARE!!!]

Hello

My URL’s in this navbar doesn’t work, the funny part is that I do have the same navbar on other pages and I just copy paste the code to my this page. It’s a PHP page, but when I change it to .html it doesn’t work either.

So, the same codes, does work on page A but not on page B…

[B]CSS:[/B]

[CODE].c4 {
border: solid 2px;
border-color:#FF6600;
width:7.451%;
position:absolute; top:413px; left:9.50em;
}
.c5 {
color:#FFFFFF;
background-color:#FF6600;
font-family:Arial;
width:100px;
border: solid 1px;
border-color:#FF3300;
border-radius:1px;
}

.c7 {
text-decoration:None;
color:#FF6600;
border:solid 1px;
border-color:#BDBDBD;
width:100px;
}
.c7:hover {
color:#0033FF;
text-decoration:Underline;
}[/CODE]

[B]HTML:[/B]

[CODE]<!–Navbar–>
<div class=”c4″>
<div class=”c5″>About:</div>
<div class=”c6″>
<a class=”c7″ href=”forum.html”>Our forum</a>
<a class=”c7″ href=”aboutus.html”>About iCode4U</a>
<a class=”c7″ href=”getyoursite.html”>Get your site</a>
<br><a class=”c7″ href=”ourstaff.php”>Our staff</a>
<br><a class=”c7″ href=”https://twitter.com/OfficialiCode4U”>Our Twitter</a>
<br><a class=”c7″ href=”https://www.facebook.com/icode.foru”>Our Facebook</a>
<div class=”c5″>Other:</div>
<a class=”c7″ href=”http://www.zeldauniverse.net”>ZeldaUniverse</a>
<br><a class=”c7″ href=”http://www.facebook.com”>Facebook</a>
<br><a class=”c7″ href=”http://www.Twitter.com”>Twitter</a>
</div>
<!–Navbar–>[/CODE]

What’s wrong with this?
My site isn’t online yet.

The URL doesn’t even hover and they should be.

Thanks for reading,

Niely

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@jabeen100Dec 24.2013 — Try to change the main method of html.
Copy linkTweet thisAlerts:
@NielyboykenauthorDec 24.2013 — ^What do you mean exactly?
Copy linkTweet thisAlerts:
@rtretheweyDec 24.2013 — You can't just copy and paste HTML and CSS from one page into another and always expect it to work. Many CSS settings (like "position:absolute") rely on their context within the entire document. And without seeing the entire document, it's impossible to diagnose the trouble in this instance. If you'll post a link to the page you're having trouble with, someone will help you. But you should also work on building your CSS skills so you'll know what to look for when problems arise. Good luck!
Copy linkTweet thisAlerts:
@Major_PayneDec 24.2013 — Best to check for coding errors and correct those.

Validating:

Why Validate?

CSS Validator

HTML Validator

But It Doesn't Validate
Copy linkTweet thisAlerts:
@auntniniDec 24.2013 — Would have to see online site to be sure, but my guess is that you may have some folders here ???

When linking from home page index.html (which sits on top, or outside of, folders) you just use href="forum.html". But , if forum.html is in a folder, you have to dig out of the folder with ../ to go back to home ../index.html.
Copy linkTweet thisAlerts:
@NielyboykenauthorDec 24.2013 — I haven't got any folders. ?

But I think I will just re-write my whole navbar, it's just two pages. I will let you guys know something when I'm ready! ?
Copy linkTweet thisAlerts:
@NielyboykenauthorDec 24.2013 — Nope, rewrited my whole HTML & CSS for navbar and still doesn't work...
×

Success!

Help @Nielyboyken spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...