Zoklet.net

Go Back   Zoklet.net > Technology > Technophiles and Technophiliacs > Codes of all kinds

Reply
 
Thread Tools
  #1  
Old 01-29-2009, 02:50 AM
Spam Man Sam Spam Man Sam is offline
Wealthy Merchant
 
Join Date: Jan 2009
Location: Canada
Thanks: 26
Thanked 12 Times in 8 Posts
Default Silly HTML Questions - Image in the div class title

Hey heres an easy HTML problem for all you html junkies out there.

On this static page I'm making it goes like this. I have a title div class in the div header. I want a small logo to go next to the text. It would look like this:

logo Text that is website title

Whenever I try to put in an IMG SRC tag it just bumps the text down and ruins everything.

Can anyone lend a hand?
Reply With Quote
  #2  
Old 01-29-2009, 03:11 AM
Zok's Avatar
Zok Zok is offline
Autonomato-noma-napoton
 
Join Date: Dec 2006
Location: Ohio
Thanks: 64
Thanked 876 Times in 342 Posts
Default Re: Silly HTML Questions - Image in the div class title

Post your code
Reply With Quote
  #3  
Old 01-29-2009, 03:22 AM
Lao Tzu Lao Tzu is offline
Baron
 
Join Date: Jan 2009
Location: Scotland
Thanks: 168
Thanked 30 Times in 22 Posts
Default Re: Silly HTML Questions - Image in the div class title

Try making the div tag a span tag. Div tags start on a new line by default. This might not be your problem, so as Zok said, post your code!
Reply With Quote
  #4  
Old 01-29-2009, 03:38 AM
Spam Man Sam Spam Man Sam is offline
Wealthy Merchant
 
Join Date: Jan 2009
Location: Canada
Thanks: 26
Thanked 12 Times in 8 Posts
Default Re: Silly HTML Questions - Image in the div class title

<code>

<div class="container">

<div class="header">

<div class="title">
<IMG SRC="image.gif" ALT="logo" WIDTH=361 HEIGHT=210> <h1>Text Test</h1>
</div>

</div>
</code>
Reply With Quote
  #5  
Old 01-29-2009, 04:39 AM
Lao Tzu Lao Tzu is offline
Baron
 
Join Date: Jan 2009
Location: Scotland
Thanks: 168
Thanked 30 Times in 22 Posts
Default Re: Silly HTML Questions - Image in the div class title

Quote:
Originally Posted by Spam Man Sam View Post
<code>

<div class="container">

<div class="header">

<div class="title">
<IMG SRC="image.gif" ALT="logo" WIDTH=361 HEIGHT=210> <h1>Text Test</h1>
</div>

</div>
</code>
Your problem is mostly the <h1> tag. I think, being a header, it starts a new line. Try using CSS to make a header instead then use:
HTML Code:
<span class='myheader'>
Reply With Quote
  #6  
Old 02-01-2009, 11:08 PM
toraton's Avatar
toraton toraton is offline
Knight
 
Join Date: Jun 2008
Thanks: 81
Thanked 80 Times in 51 Posts
Send a message via AIM to toraton Send a message via MSN to toraton Send a message via Skype™ to toraton
Default Re: Silly HTML Questions - Image in the div class title

You'll have to float the image, the text, both, or manually position one or both of them.
Reply With Quote
  #7  
Old 02-07-2009, 06:58 PM
cockslave cockslave is offline
Member
 
Join Date: Feb 2009
Location: HURR
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Silly HTML Questions - Image in the div class title

learn css. (sorry id help out more but i have a boatload of work to do)

also, close all ur tags, i spy an unclosed div
Reply With Quote
Reply

Bookmarks

Tags
class, div, html, image, images, questions, silly, title

Thread Tools

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


Hot Topics
On IRC
Users: 4
Messages/minute: 0
Topic: "http://www.zoklet.net/..."
Users: 22
Messages/minute: 0
Topic: "buttpee"
Users: 10
Messages/minute: 0
Topic: "11:37 < mib_i8mfin> so wie ich die website hier sehe las..."
Advertisements
Your ad could go right HERE! Contact us!

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.