The Cave of Dragonflies forums

Go Back   The Cave of Dragonflies forums > Websites > Webmaster Help and Discussion

Notices

Reply
 
Thread Tools
  #1  
Old 10-29-2013, 04:07 PM
Nira's Avatar
Nira Nira is offline
クタ ララ スタ ララ
 
Join Date: November 1, 2011
Location: Stuttgart, Germany
Age: 17
Posts: 2,662
Pronoun: they
Nira is an unknown quantity at this point
Send a message via AIM to Nira Send a message via Skype™ to Nira
Default Banner issue

What happens when I work on my website? I have problems. I should probably just make a thread for all of my problems because I'm like 90% of this forum right now.

So. Banner. I have a banner, but I want it to vary from style to style because if I don't, it would look tacky. So, I made some CSS for the banner.

Code:
#logo{
position:absolute;
margin-left: auto;
margin-right: auto;
background-image: url("reshiram_logo.png");
}
Then, I put this code into my pages. Let's use my index for an example.

HTML Code:
<html>
<head>
<link rel="stylesheet" type="text/css" href="reshiram_style.css"/>
<title>Index
</title>
<a href="Index.html">
<div id="logo">
</div>
</a>
But when I do this, there's nothing. It's as if there's no code there at all; there's not even an empty gap the size of the banner or anything. It's just the content of the page with no banner, and I don't really see any problems. So, uh, help?

EDIT: This wasn't really clear, so I'd better clarify. The CSS is in the reshiram_style.css file. So it isn't because I forgot to put it in or anything.
__________________
「私は光栄です, 高槻さん。」
♠ JOHARI WINDOW ♠
Reply With Quote
  #2  
Old 10-29-2013, 10:23 PM
Butterfree's Avatar
Butterfree Butterfree is offline
Still loves Joltik, though!
 
Join Date: June 22, 2008
Location: Iceland
Age: 27
Posts: 2,393
Pronoun: she
Butterfree is on a distinguished road
Send a message via MSN to Butterfree
Default Re: Banner issue

That's because there is nothing inside your logo div, so it is zero pixels tall. You need to set a height and width on it in the CSS (presumably, the same as the dimensions of your banner image).

Also, you shouldn't need the position:absolute.
__________________
Butterfree's Current Obsession
Ace Attorney, a series of visual novels about lawyers that I will never stop adoring.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:41 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Pokémon, Pikachu and all other Pokémon characters © Nintendo, Game Freak and Creatures Inc. The Cave of Dragonflies, content, styles, etc. © Butterfree/Dragonfree/antialiasis.
Forum now hosted by Eevee's HQ.