Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 11-03-2007, 07:18 PM Banner
Novice Talker

Posts: 13
Trades: 0
Im trying to insert a banner at the top of my website. I want this banner to stay there regardless of what page or sub dir you're looking at on my site. Would that be considered a style? sorry if thats stupid but this is my first day of css. Thanks
Nexrus is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-03-2007, 07:59 PM Re: Banner
Defies a Status

Posts: 3,420
Trades: 0
Yep that would be a style. You could create a new div tag in the HTML and then apply a background and height to this, as shown below:

HTML:

Quote:
<div id="header"><h4>Some stuff here if you like</h4></div>
CSS:

Quote:
#header {
background: url("route to the image you want") left top no-repeat;
height: 200px;
}
Hope this helps
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 11-07-2007, 09:28 AM Re: Banner
Super Talker

Posts: 133
Name: Jess Weiss
Location: Massachusetts
Trades: 0
Is there a way to make that header into a link also?
__________________
"If you worried about falling off the bike, you'd never get on it" - Lance Armstrong

"The problem with people who have no vices is that generally you can be pretty sure they're going to have some pretty annoying virtues." - Elizabeth Taylor
lynnema is offline
Reply With Quote
View Public Profile Visit lynnema's homepage!
 
Old 11-07-2007, 09:31 AM Re: Banner
Experienced Talker

Posts: 39
Name: Martin
Trades: 0
how do u mean? the whole banner 1 link or on the banner a link?
__________________

Please login or register to view this content. Registration is FREE
Martin101 is offline
Reply With Quote
View Public Profile
 
Old 11-07-2007, 12:01 PM Re: Banner
Super Talker

Posts: 133
Name: Jess Weiss
Location: Massachusetts
Trades: 0
Making the banner into one link... right now, I never create a css header with a background image, because I don't know how to link that banner to the homepage, which is pretty standard, from what I know. I always just use a regular <img> and <a href=> combo instead of styles. I would imagine there is a better way to do it, but I don't know what it is...
__________________
"If you worried about falling off the bike, you'd never get on it" - Lance Armstrong

"The problem with people who have no vices is that generally you can be pretty sure they're going to have some pretty annoying virtues." - Elizabeth Taylor
lynnema is offline
Reply With Quote
View Public Profile Visit lynnema's homepage!
 
Old 11-07-2007, 12:12 PM Re: Banner
Experienced Talker

Posts: 39
Name: Martin
Trades: 0
I guess if you want to make it a link u should use <img> and <a href> tags else you should use background image with css
__________________

Please login or register to view this content. Registration is FREE
Martin101 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Banner
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.41849 seconds with 12 queries