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
header not appearing on page, what am i doing wrong?
Old 01-16-2013, 10:38 AM header not appearing on page, what am i doing wrong?
Junior Talker

Posts: 3
Trades: 0
I cant get headers to work! Why?
Code:
<head> 
<style type="text/css">     
  

<!-- "As you can see below, i tried to include a header image in 3 different ways" -->


#header-wrapper { width:660px; margin:0 auto 10px; border:1px solid $bordercolor; background:url(LINK REMOVED FOR POST) no-repeat; height:400px; }
#header{background-image: url(LJNK REMOVED);}

header {height: 500px; margin bottom: 10px; background-image:url(LINK REMOVED) ; }

<!-- "body image insertion works fine, so is null" -->

body {background-image:url(null) ; }
p {color: red}

</style>
</head>
<body>


<div ID=header></div>
<p>this is text</p>

</body>

Last edited by Physicsguy; 01-16-2013 at 02:02 PM..
AEMcSwain is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-16-2013, 01:16 PM Re: header not appearing on page, what am i doing wrong?
chrishirst's Avatar
Defies a Status

Posts: 43,965
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Code:
margin bottom:
There is no property called "margin bottom: " or one called "$bordercolor;"
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-16-2013, 02:09 PM Re: header not appearing on page, what am i doing wrong?
vangogh's Avatar
Post Impressionist

Posts: 11,144
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Yep. margin bottom needs to be margin-bottom. $bordercolor is a variable so I'm guessing the original code was from a Sass or Less file. You'll need to supply an actual color like blue or #ff0000.

Try those fixes and see if the heading shows up. If not let us know and we can try again.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Design, Development, Marketing, and SEO Tutorials |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-16-2013, 05:25 PM Re: header not appearing on page, what am i doing wrong?
Junior Talker

Posts: 3
Trades: 0
Ok. So i removed the id's, and just kept the header formatting. I also removed the margin bottom tag. Despite these changes, my header is stilll nonexistent.

Here's the modified markup

<head>
<style type="text/css">


header {height: 500px; background-image:url(images/headerbg.img) ; }

<!-- "body image insertion works fine, so is null" -->

body {background-image:url(null) ; }
p {color: red}

</style>
</head>
<body>


<p>this is text</p>

</body>
AEMcSwain is offline
Reply With Quote
View Public Profile
 
Old 01-17-2013, 02:17 PM Re: header not appearing on page, what am i doing wrong?
vangogh's Avatar
Post Impressionist

Posts: 11,144
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Is this what you have for the background image url?

images/headerbg.img

I'm not familiar with the .img extension. Maybe that's throwing things off.

Do you have a link to this online somewhere? It'll be very hard trying to figure this out just seeing a few bits of code. If you can put the page online somewhere and link to it, that will make it easiest for us, and likely lead to the quickest solution.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Design, Development, Marketing, and SEO Tutorials |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-18-2013, 11:53 AM Re: header not appearing on page, what am i doing wrong?
Junior Talker

Posts: 3
Trades: 0
no, i'm not using that as my image. I'm using a .png

i haven't bought a domain yet, so i don't how i could make it available. Though, i must say, this isn't my website, it's just a test page with all other code removed to sterlize the possibility of complex mistakes; to try to sort out the problems with the css element in question specific to this thread. which would be:

" background-image: url() "

inside of the header , or making the header appear at all in ANY page.
AEMcSwain is offline
Reply With Quote
View Public Profile
 
Old 01-18-2013, 01:11 PM Re: header not appearing on page, what am i doing wrong?
vangogh's Avatar
Post Impressionist

Posts: 11,144
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
If you can't put the page online somewhere (it doesn't have to be under its own domain) then could you paste more of the code here. Or is what you showed in your first post all there is? We'll probably need to see both the html and the css.

Other than what's already been pointed out above, I don't see anything wrong with what you've posted here. Maybe I'm missing something, but I'm just not seeing anything. More code might help.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Design, Development, Marketing, and SEO Tutorials |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-22-2013, 01:08 PM Re: header not appearing on page, what am i doing wrong?
Skilled Talker

Posts: 90
Name: Lisa Forgan
Location: Colorado
Trades: 0
Not sure if this got resolved.
But, what I see as the problem is that your "header" div doesn't have any content so no background image will show. To make it show, you need to define in your css "display: block" and make sure you set the width and height.

If you provide more code to see if you have all the correct elements would make things a lot easier on what to pinpoint and not just shooting in the dark.

Last edited by Puddlemut; 01-22-2013 at 01:10 PM..
Puddlemut is offline
Reply With Quote
View Public Profile
 
Old 01-22-2013, 02:18 PM Re: header not appearing on page, what am i doing wrong?
vangogh's Avatar
Post Impressionist

Posts: 11,144
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I thought of that too, but it looks like a height was set and since the element in question is a div, it should be block level by default. I don't see where a width was set though, so maybe that is the issue.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Design, Development, Marketing, and SEO Tutorials |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-27-2013, 03:01 PM Re: header not appearing on page, what am i doing wrong?
matt w's Avatar
Extreme Talker

Posts: 153
Location: kalamazoo
Trades: 0
AEMcSwain,
Why don't you get a free hosting server? It would help a lot and it's free.
matt w is offline
Reply With Quote
View Public Profile Visit matt w's homepage!
 
Old 04-26-2013, 06:01 PM Re: header not appearing on page, what am i doing wrong?
Junior Talker

Posts: 1
Trades: 0
maybe:
<div ID="header">

?
tinkib is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to header not appearing on page, what am i doing wrong?
 

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.29725 seconds with 11 queries