Irish SEO,  Marketing & Webmaster Discussion
 

 

Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 15-04-2008, 09:01 PM
paul's Avatar
Web Whore
 
Join Date: Dec 2006
Location: .de
Posts: 968
paul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud of
Default aligning an image and H1 tag vertically

HTML Code:
 <h1><span style="vertical-align: middle; "><img src="http://www.irishwebmasterforum.com/images/seo-faq.png" title="SEO FAQ online"><a title="{header}" href="{faqHome}">{header}</a></span></h1> 
Basically I want to have an image and then a h1 tag side by side, and I want to have the H1 aligned to the middle of the image. Am I missing something blindly obvious ?

Thanks,
paul
__________________
my sites :
irish poker / irish jobs / seo faq / advertise jobs free / green card / skiing

Last edited by paul; 15-04-2008 at 09:06 PM.
Reply With Quote
  #2 (permalink)  
Old 15-04-2008, 09:12 PM
paul's Avatar
Web Whore
 
Join Date: Dec 2006
Location: .de
Posts: 968
paul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud of
Default

Got it fixed, I need to align the image and not the text.
__________________
my sites :
irish poker / irish jobs / seo faq / advertise jobs free / green card / skiing
Reply With Quote
  #3 (permalink)  
Old 16-04-2008, 09:41 AM
gav240z's Avatar
Wannabe Geek
 
Join Date: Dec 2007
Location: Rathmines, Dublin
Posts: 378
gav240z is a jewel in the roughgav240z is a jewel in the roughgav240z is a jewel in the rough
Default Best option.

Best way to do it would be to give the H1 element a background image using CSS.

h1 {
background:url(imageurl.jpg); top left no-repeat;
}

Then again having a look at your code below. It looks like you want to have the image clickable.

Bit hard to know without seeing the actual design you are attempting.
Reply With Quote
  #4 (permalink)  
Old 16-04-2008, 09:47 AM
paul's Avatar
Web Whore
 
Join Date: Dec 2006
Location: .de
Posts: 968
paul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud of
Default

nice SEO FAQ - powered by phpMyFAQ 2.0.6 was the aim , and it seems to be working find right now, did it with a DIV style
Code:
#example 
{
vertical-align:middle;
}
__________________
my sites :
irish poker / irish jobs / seo faq / advertise jobs free / green card / skiing
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 06:30 AM.


Powered by: vBulletin Version 3.7.2, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.

Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56