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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Concerning my main image on my site-please help!
Old 07-26-2007, 10:56 AM Concerning my main image on my site-please help!
Novice Talker

Posts: 14
Trades: 0
Hi everybody. I'm trying to incoporate some code into the main image on my home page for SEO purposes. Basically I have the following code for my logo on the home page:

<div id="pagecell1">
<img class="logo" src="newhome/images/logo2.jpg" alt="Philly Sports from Phillypurge.com" />


What I would like to do is somehow incorporate H1 and H2 tags with an a href tag, so that my website title is seen by the engine as an H1 tag.

I noticed one of my competitors utilized a banner for their main image and used this code. Therefore, when I looked at the cached text of their site the first thing google saw was their title, but as a header.

<h1 id="banner-header"><a href="http://www.suchandsuchsite.com/" accesskey="1">Their title</a></h1>
<h2 id="banner-description"></h2>


How can I do something similar to this by staying within the same format of a "pagecell"? Any help would be greatly appreciated! And, the website url of my site is www.phillypurge.com so you see where the logo is in relation to everything else. Thanks!

Dennis
phillypurge is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-26-2007, 03:02 PM Re: Concerning my main image on my site-please help!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Put your logo image in as the background to the pagecell1 div

so you'd have:
#pagecell1{
background: url(newhome/images/logo2.jpg) no-repeat;
width: xxpx;
height: xxpx;
}
Then, you can set your headings in the div in the html:

<div id="pagecell1">
<h1>Philly Purge</h1> /*position as needed with css*/
<h2>etc, etc.</h2> /*position as needed*/
</div>

Your headings are accessible w/o needed any 'tricks' to do it AND you retain your logo where you want it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-27-2007, 08:34 AM Re: Concerning my main image on my site-please help!
Experienced Talker

Latest Blog Post:
Long time no … erm post?
Posts: 45
Name: Matthew Bagley
Trades: 0
I use a similar method where as the image on my site is actaully a H1 tag and used CSS to format it.
__________________
Matthew Bagley
Paramiliar Design Studios

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Paramiliar is offline
Reply With Quote
View Public Profile
 
Old 07-27-2007, 09:44 AM Re: Concerning my main image on my site-please help!
Novice Talker

Posts: 14
Trades: 0
Right now in the css file I have the following:

#pagecell1{
position:absolute;
top: 208px;
left: 20px;
right: 2%;
width:95.6%;
background-color: #ffffff;
height: 2860px;

Would I take out the "background-color: #ffffff" and replace it with the background: url(newhome/images/logo2.jpg) no-repeat; code?

I must mention that I'm by no means an expert at this. I run the site and maintain it and had somebody else design it. I am learning new things everyday, but still have a ways to go.

Thanks for your help!
phillypurge is offline
Reply With Quote
View Public Profile
 
Old 07-27-2007, 09:48 AM Re: Concerning my main image on my site-please help!
vkw91's Avatar
Ultra Talker

Latest Blog Post:
Good Web Design Guide - part 1
Posts: 314
Name: Vicky
Location: Wales
Trades: 0
off topic slightly, but is that menu bar at the top of your page off a free template with Dreamweaver 8. It looks the spitting image of it and it has the same rollover effect?
__________________
Blog (new):
Please login or register to view this content. Registration is FREE

Portfolio:
Please login or register to view this content. Registration is FREE

Techno Pup:
Please login or register to view this content. Registration is FREE

vkw91 is offline
Reply With Quote
View Public Profile Visit vkw91's homepage!
 
Old 07-27-2007, 09:52 AM Re: Concerning my main image on my site-please help!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
Would I take out the "background-color: #ffffff" and replace it with the background: url(newhome/images/logo2.jpg) no-repeat; code?
No, you would just write it as:
background: #fff url(newhome/images/logo2.jpg) no-repeat;

Forget the position: absolute, you don't need it. It's the first thing on your page, it WILL be at the top and to the left. Use the normal document flow and use margins/padding to push it to where you want it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-27-2007, 11:41 AM Re: Concerning my main image on my site-please help!
Novice Talker

Posts: 14
Trades: 0
No, the homepage was designed from scratch.

Quote:
Originally Posted by vkw91 View Post
off topic slightly, but is that menu bar at the top of your page off a free template with Dreamweaver 8. It looks the spitting image of it and it has the same rollover effect?
phillypurge is offline
Reply With Quote
View Public Profile
 
Old 07-27-2007, 11:41 AM Re: Concerning my main image on my site-please help!
Novice Talker

Posts: 14
Trades: 0
Great. Thanks for your help once again!

Quote:
Originally Posted by LadynRed View Post
No, you would just write it as:
background: #fff url(newhome/images/logo2.jpg) no-repeat;

Forget the position: absolute, you don't need it. It's the first thing on your page, it WILL be at the top and to the left. Use the normal document flow and use margins/padding to push it to where you want it.
phillypurge is offline
Reply With Quote
View Public Profile
 
Old 07-27-2007, 11:57 AM Re: Concerning my main image on my site-please help!
Experienced Talker

Latest Blog Post:
Long time no … erm post?
Posts: 45
Name: Matthew Bagley
Trades: 0
Here is the code I use for Paramiliar

Code:
<h1 id="logo"><a href="<? echo $websiteurl;?>index.html">Paramiliar Design Studios Redefining Innovation and Excellence <? echo $meta_keywords;?></a></h1>
and the CSS

Code:
#logo {
    margin: 0px 0px 0px;
    padding:0px;
    float:left;
}
#logo a {
    display:block;
    background:url(images/paramiliar_logo.jpg);
    width:242px;
    height:80px;
    text-indent: -900em;
    text-decoration:none;
    line-height:100%;
}
__________________
Matthew Bagley
Paramiliar Design Studios

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Paramiliar is offline
Reply With Quote
View Public Profile
 
Old 07-27-2007, 12:30 PM Re: Concerning my main image on my site-please help!
vkw91's Avatar
Ultra Talker

Latest Blog Post:
Good Web Design Guide - part 1
Posts: 314
Name: Vicky
Location: Wales
Trades: 0
Quote:
Originally Posted by phillypurge View Post
No, the homepage was designed from scratch.
OK, no problem. I just thought that it looked very similar to the "HALO" template in DW8. it has the same mark-up and everything.

It bugs me when i recogise something but don't know where from. Maybe i clicked your site before.
__________________
Blog (new):
Please login or register to view this content. Registration is FREE

Portfolio:
Please login or register to view this content. Registration is FREE

Techno Pup:
Please login or register to view this content. Registration is FREE

vkw91 is offline
Reply With Quote
View Public Profile Visit vkw91's homepage!
 
Old 07-28-2007, 08:55 AM Re: Concerning my main image on my site-please help!
Novice Talker

Posts: 14
Trades: 0
One more question LadynRed, when you say to "position as needed with css" for the headers, how will I go about doing that? Not sure how to proceed with that.

[quote=Then, you can set your headings in the div in the html:

<div id="pagecell1">
<h1>Philly Purge</h1> /*position as needed with css*/
<h2>etc, etc.</h2> /*position as needed*/
</div>[/quote]

Last edited by phillypurge; 07-28-2007 at 08:56 AM..
phillypurge is offline
Reply With Quote
View Public Profile
 
Old 07-28-2007, 09:43 PM Re: Concerning my main image on my site-please help!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You would 'position' the headings with margins and/or padding until you push them to where you want them.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-30-2007, 12:20 AM Re: Concerning my main image on my site-please help!
Novice Talker

Posts: 14
Trades: 0
I tried my hand at what you suggested, but things got really screwed up so I changed it back to how it was.

Is there a way I could just attach an H1 heading to the image and make the heading invisible?
phillypurge is offline
Reply With Quote
View Public Profile
 
Old 07-30-2007, 02:56 AM Re: Concerning my main image on my site-please help!
Average Talker

Posts: 25
Location: Indonesia
Trades: 0
Quote:
Originally Posted by phillypurge View Post
Is there a way I could just attach an H1 heading to the image and make the heading invisible?
<H1 style="visibility:hidden;">Your H1 Tag</H1>
__________________

Please login or register to view this content. Registration is FREE
.
dannybedor is offline
Reply With Quote
View Public Profile Visit dannybedor's homepage!
 
Old 07-30-2007, 05:33 AM Re: Concerning my main image on my site-please help!
Experienced Talker

Latest Blog Post:
Long time no … erm post?
Posts: 45
Name: Matthew Bagley
Trades: 0
Quote:
Originally Posted by phillypurge View Post
I tried my hand at what you suggested, but things got really screwed up so I changed it back to how it was.

Is there a way I could just attach an H1 heading to the image and make the heading invisible?
Yes look at my code posted a few posts up that is exactly how you would set an H1 tag so that the text is hidden and an image is shown in its place.
__________________
Matthew Bagley
Paramiliar Design Studios

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Paramiliar is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Concerning my main image on my site-please help!
 

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.94004 seconds with 12 queries