The Cave of Dragonflies forums

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


Thread Tools
Old 10-29-2013, 03:07 PM
qva's Avatar
qva qva is offline
pretty good
Join Date: November 1, 2011
Location: space coast
Age: 19
Posts: 2,814
Pronoun: she
qva is on a distinguished road
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.
Reply With Quote
Old 10-29-2013, 09:23 PM
Butterfree's Avatar
Butterfree Butterfree is offline
Still loves Joltik, though!
Join Date: June 22, 2008
Location: Iceland
Age: 29
Posts: 2,536
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
Award-winning Icelandic BDSM techno-punk performance art group Hatari, who participated in Eurovision 2019 for Iceland. They must be seen to be believed. You can see a sample of their Eurovision entry and some of them being them as featured on Last Week Tonight here.
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 05:26 AM.

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