Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 10-09-2009, 08:39 PM   #1 (permalink)
Member
 
Join Date: 07-04-09
Location: Sabah, Malaysia
Posts: 38
iTrader: 0 / 0%
Latest Blog:
None

jimisan is liked by many
Positioning help required

Hello,

How do I align my paragraphs with the image without using absolute position? All help is appreciated. Thank you.

My coding as follows:
<html>
<head>
<style type="text/css">
#container {
width: 50em;
height: auto;
border: 1px dotted black;
}
p {
clear: left;
position: absolute;
left: 20em;
top: 0em;
}
</style>
</head>
<body>
<div id="container"
<span id="ckBanner546"><a href="http://zenmed.com/?aid=7831&a=7831&b=546&c=0&x=click" target="_blank"></a></span><script type="text/javascript" src="http://s1.cdn.clickkingdom.net/js/FlashReplace.js"></script><script type="text/javascript">FlashReplace.replace("ckBanner546", "http://s2.cdn.clickkingdom.net/ads/z09/03_300X250.jpg.swf", "ckBannerFlash546", 300, 250, 8, { flashVars : "clickTAG="+escape("http://zenmed.com/?aid=7831&a=7831&b=546&c=0&x=click"), allowscriptaccess : "always" });</script>
<p>A papule is a small solid lesion slightly elevated above the surface of the skin.<br /> A pustule, again, is a dome-shaped skin elevation containing pus: a mixture of<br /> white blood cells, dead skin cells, and bacteria. It often has a hair in the center.<br /> A macule is a temporary red spot left by a healed acne lesion. It is flat and<br /> pinkish, with well-defined borders that can persist for days to weeks. A number</br /> of macules can contribute to the "inflamed face" appearance of acne. A nodule is<br />a solid dome-shaped or irregularly shaped lesion, characterized by pain, inflam-<br />mation and extending into deeper layers of the skin. It may cause tissue destruct-<br />ion resulting in scarring.
</p>
</div>
</body>
</html>
jimisan is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-09-2009, 09:17 PM   #2 (permalink)
Member
 
Join Date: 07-04-09
Location: Sabah, Malaysia
Posts: 38
iTrader: 0 / 0%
Latest Blog:
None

jimisan is liked by many
I think I've posted on the wrong place. Can I repeat my posting on the coding forum instead? My apology.
jimisan is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-09-2009, 09:23 PM   #3 (permalink)
Super Moderator
 
htmlbasictutor's Avatar
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 3,301
iTrader: 0 / 0%
Latest Blog:
Website Testing

htmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web pro
Quote:
Originally Posted by jimisan View Post
I think I've posted on the wrong place. Can I repeat my posting on the coding forum instead? My apology.
I moved it.
__________________
HTML Basic Tutor - Learn to code your web pages/blogs
Basic Computer Information - Computer Basics for website owners

Trouble getting indexed? Maybe it's something techincal - Pm me.
htmlbasictutor is online now  
Add Post to del.icio.us
Reply With Quote
Old 10-09-2009, 09:22 PM   #4 (permalink)
Super Moderator
 
htmlbasictutor's Avatar
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 3,301
iTrader: 0 / 0%
Latest Blog:
Website Testing

htmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web pro
CSS
.floatleft
{
float: left;
}

HTML
<p class="floatleft"><img scr="path to image" width="width" height="height" alt="alt attribute"></p>

XHTML
<p class="floatleft"><img scr="path to image" width="width" height="height" alt="alt attribute" /></p>

Change the spec to right if that's the side you want the image on.

NB: you are missing the end of your container opening div tag
__________________
HTML Basic Tutor - Learn to code your web pages/blogs
Basic Computer Information - Computer Basics for website owners

Trouble getting indexed? Maybe it's something techincal - Pm me.
htmlbasictutor is online now  
Add Post to del.icio.us
Reply With Quote
Old 10-09-2009, 09:50 PM   #5 (permalink)
Member
 
Join Date: 07-04-09
Location: Sabah, Malaysia
Posts: 38
iTrader: 0 / 0%
Latest Blog:
None

jimisan is liked by many
Hello htmlbasictutor,

Thanks for moving me to the correct place and secondly for solving my problem. It's so simple and yet I don't see it.


---------
Jimisan
jimisan is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Positioning yourself to win sega009 Online Business Forum 7 05-27-2009 09:30 AM
How do i make my required fields required? drew68 Coding Forum 4 04-11-2008 01:37 PM
CSS positioning vs. table positioning downtroden Coding Forum 2 07-19-2004 12:40 PM
CSS positioning help edbarton Web Design Lobby 16 05-03-2004 02:10 PM
***Help: About Positioning*** pcmtv Marketing Forum 3 04-26-2004 11:40 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 09:53 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.