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
Old 11-10-2005, 07:04 PM Basic CSS/HTML Help
Junior Talker

Posts: 3
Trades: 0
Right, posting here is my last resort to figuring out this problem, so if anyone can help then i'd be more than grateful. Smile

This isn't happening in Internet explorer.

So, the problem is that i've created a basic layout and all works fine until i place an image(any sized image) inside the content div in the main column(<div id="main"></div>), which then decides to stretch it out and push the right handside column(<div id="col2"></div>) down to the bottom. Haven't a clue why it's doing this or how to prevent it. Where am i going wrong?

p.s apologies for the sloppy coding, haven't got round to tidying or finishing it off yet

PHP Code:
[B]index.html[/B]
<
html>
<
head>
<
title>untitled</title>
<
link rel="stylesheet" type="text/css" media="screen" href="style.css" />
</
head>
<
body>
   <
div id="col1">
      <
div id="head"><span class="headtitle">logo</span>
      </
div><!-- head -->
      
      <
div id="links">
      <
ul>
      <
li><a href="#">Home</a></li>
      <
li><a href="#">Photography</a></li>
      <
li><a href="#">Digital Art</a></li>
      </
ul>
      </
div><!-- links -->
   </
div><!-- col1 -->
 
   <
div id="page">
      <
div id="top">&nbsp;</div>
      <
div id="mid">
         <
div id="header">
            <
div id="yo">
            
Home
            
</div><!-- yo -->
         </
div><!-- header -->
      
         <
div id="main">
            <
div id="content">
            
At precisely 1700 yesterday on the east coast of west Britain came a large viking motor cycleReports have not yet indicated where this Norweigen Viking Motor cycle that departed from the north of Italy had come fromWest cheshire police have been called in to investiage and are linking with the new theories of Russians evolving into gigantic man beasts who are out to eat our tiny little island.
            </
div><!-- content -->
         </
div><!-- main -->
      
         <
div id="col2">
            <
div id="yo">
            <
span id="spin">oh noes another column lets             see if we can eat it perhaps nah i dont think                   so</span>
            </
div><!-- yo -->
         </
div><!-- col2 -->
      </
div><!-- mid -->


      <
div id="bot">website designed and implemented by your grandma<br />all content copyrighted by the batchelors butter cast
      
</div><!-- bot -->
   </
div><!-- page -->
</
body>
</
html

style.css
PHP Code:
body {
padding0px;
margin0px;
margin-right20%;
margin-left20%;
font-familyHelvetica;
font-size12;
background-color#343434;
}

#head {
color#fff;
padding20px;
background#97C99B;
border-left3px solid #e9e9e9;

}

.
headtitle {
font-size34px;
}

#top {
border-right3px solid #e9e9e9;
border-left3px solid #e9e9e9;
color#ffffff;
font-size18px;
padding5px;
background-color#3D769A;

}
#bot {
border-right3px solid #e9e9e9;
border-left3px solid #e9e9e9;
color#fff;
padding15px;
background-color#3D769A;
clearboth;
}

#col1 {
floatleft;
width20%;
background-color#f7f7f7;
}

#page {
floatright;
width80%;
}

#mid {
floatright;
border-left3px solid #e9e9e9;
border-right3px solid #e9e9e9;
background-color#fff;
}

#main {
floatleft;
width80%;
border0px solid #000;
}

#footer {
clearboth;
border0px solid #000;
}

#col2 {
width20%;
floatright;
border0px solid #000;
}

#yo {
padding10px;
}

#header {
border-bottom1px dotted #a6a6a6;
background-color#fbfbfb;
line-height1px;
border-top3px solid #e9e9e9;
margin-right0px;
padding-right0px;
}

*
html #header {
border-bottomnone;
backgroundurl(css.gifrepeat-x bottom;
}
#content {
padding20px;
margin3px;
border-right1px dotted #a6a6a6;
min-width10px;
}
*
html #content {
border-rightnone;
backgroundurl(css.gifrepeat-y right;
}
#links {
border-top3px solid #e9e9e9;
line-height3em;
backgroundurl(back.jpgrepeat-x bottom left;
padding10px;
padding-bottom10px;
}

#spin {
text-alignright;
padding4px;
}


h1 {
border-bottom1px solid #dedede;
}

#links ul {
padding0px;
margin0px;
list-
style-typenone;
}

#links li {
padding0px;
margin0px;
}

{
text-decorationnone;
color#000;
border-left15px solid #3D769A;
padding-left2px;
padding-top0px;
padding-bottom0px;
}

a:hover {
color#000;
border-left15px solid #97C99B;
border-bottom1px solid #97C99B;

Thanks for any help.
Assgoblin is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-10-2005, 07:47 PM
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
EDIT*
Okay, try putting the text in <p></p> tags. It worked for me.

Like this:
Code:
<html>
<head>
<title>untitled</title>
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
</head>
<body>
   <div id="col1">
      <div id="head"><span class="headtitle">logo</span>
      </div><!-- head -->

      <div id="links">
      <ul>
      <li><a href="#">Home</a></li>
      <li><a href="#">Photography</a></li>
      <li><a href="#">Digital Art</a></li>
      </ul>
      </div><!-- links -->
   </div><!-- col1 -->

   <div id="page">
      <div id="top">&nbsp;</div>
      <div id="mid">
         <div id="header">
            <div id="yo">
            <p>Home</p>
            </div><!-- yo -->
         </div><!-- header -->

         <div id="main">
            <div id="content">
            <p>At precisely 1700 yesterday on the east coast of west Britain came a large viking motor cycle. Reports have not yet indicated where this Norweigen Viking Motor cycle that departed from the north of Italy had come from. West cheshire police have been called in to investiage and are linking with the new theories of Russians evolving into gigantic man beasts who are out to eat our tiny little island.</p>
            </div><!-- content -->
         </div><!-- main -->

         <div id="col2">
            <div id="yo">
            <span id="spin"><p>oh noes another column lets             see if we can eat it perhaps nah i dont think                   so</p></span>
            </div><!-- yo -->
         </div><!-- col2 -->
      </div><!-- mid -->


      <div id="bot"><p>website designed and implemented by your grandma<br />all content copyrighted by the batchelors butter cast</p>
      </div><!-- bot -->
   </div><!-- page -->
</body>
</html>
__________________

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

Last edited by angele803; 11-10-2005 at 08:22 PM..
angele803 is offline
Reply With Quote
View Public Profile
 
Old 11-11-2005, 01:07 AM
steveharro's Avatar
Extreme Talker

Posts: 172
Trades: 0
One thing that does not look right is the fact that you have 80% width and margins left and right at 20% they should be 10% to add up to 100%.
__________________
Regards Steve

Please login or register to view this content. Registration is FREE
steveharro is offline
Reply With Quote
View Public Profile
 
Old 11-11-2005, 05:47 AM
brokensoul2271's Avatar
- - - - - - - - -

Posts: 750
Location: Lancashire, UK
Trades: 0
Text should always be in paragraph tags anyway.
__________________
Yes, indeed...

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
brokensoul2271 is offline
Reply With Quote
View Public Profile Visit brokensoul2271's homepage!
 
Reply     « Reply to Basic CSS/HTML 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.54303 seconds with 12 queries