The Cave of Dragonflies forums

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


Thread Tools
Old 10-29-2013, 04:07 PM
Nira's Avatar
Nira Nira is offline
you cannot have my pain
Join Date: November 1, 2011
Location: Stuttgart, Germany
Age: 18
Posts: 2,678
Pronoun: they
Nira is an unknown quantity at this point
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.

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:
<link rel="stylesheet" type="text/css" href="reshiram_style.css"/>
<a href="Index.html">
<div id="logo">
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.
"I thought that I was surely dead. Certainly, some who saw further than I did thought I had fallen. I did not die. I experienced something worse."
Reply With Quote
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: 28
Posts: 2,461
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

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 08:33 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2018, 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.