Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-27-2012, 02:36 AM   PM User | #1
mtnmch
New Coder

 
Join Date: Sep 2010
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
mtnmch is an unknown quantity at this point
Question Make an image/logo span header/content using CSS?

I'm trying to figure out if there is a way to use CSS to make a photo span my header and body content. I know "span" is it's own CSS term, so I'm sure there is a different way to phrase it, but I want to figure out how to make my image/graphic appear that it's on both the header and the body content or header and sidebar. I wasn't sure if there was a way to do this using CSS positioning or if I would just have to slice up the image in Photoshop and put part of it in the header and part in the body?

As an example...the little banner graphic that says "Featured Deals" on this random website I found.

http://www.mesjunkets.com/our-casinos/
mtnmch is offline   Reply With Quote
Old 10-27-2012, 03:30 AM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello mtnmch,
The website you link to did that by slicing the background image. By far my least favorite method! See here.

That could easily be done with absolute positioning and some z-index. See here for some ideas.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
mtnmch (10-27-2012)
Old 10-27-2012, 05:04 AM   PM User | #3
mtnmch
New Coder

 
Join Date: Sep 2010
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
mtnmch is an unknown quantity at this point
Thumbs up

Quote:
Originally Posted by Excavator View Post
Hello mtnmch,
The website you link to did that by slicing the background image. By far my least favorite method! See here.

That could easily be done with absolute positioning and some z-index. See here for some ideas.
YES! These were the two combinations I was looking for! Googling for this topic brought up a bunch of pages for Wordpress but none from "scratch." Once again, your help is GREATLY appreciated!
mtnmch is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 +1. The time now is 06:11 PM.


Advertisement
Log in to turn off these ads.