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!

Closed Thread
Old 11-16-2008, 09:26 PM DIV issue
Junior Talker

Posts: 1
Trades: 0
I'm currently experimenting with the layout of my website but there's a problem I'm trying to resolve.

The website needs to exist with and without advertisements, as shown in the examples

With ads
without ads



I want the DIVS en TABLES to adjust in width when advertisements are shown. The text after the advertisements needs to be shown on the whole page and because of that, my problem occurs. As you can see the DIV and TABLE continious underneath the advertisement.

HTML CODE
Code:
<div id="content">
  <div class="ads_160x600_content"><img src="layout/images/ads.gif" alt="ads" /></div>
  <div style="background-image:url(layout/images/titlebar.gif); background-repeat:no-repeat">    
    <div style="position:relative; height:25px;">    
      <div style=" float:left; background:#fff; margin-left:20px; padding:0px 5px 0px 5px;">
    <h1><?php echo $_content_title[$_GET['content']][$_GET['lang']]; ?></h1>
      </div>            
    </div>
    <?php include 'content_navigation.php'; ?>
  </div>
  <div class="after_float"></div>
</div>
CSS CODE
Code:
#content {
  border: 1px solid #08699c;         
  float:right;
  padding: 3px;
  width:781px;
}

.ads_160x600_content {
  position: relative;
  background-color:#fff;
  float: right;
  width: 160px;
  height: 600px;
  padding-left:3px;
  top:0px;
  right:0px;

}

.after_float {
  clear:both;
}

Last edited by sonsyphon; 11-16-2008 at 09:34 PM..
sonsyphon is offline
View Public Profile
 
 
Register now for full access!
Old 11-17-2008, 04:46 AM Re: DIV issue
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
A link to the pages please, screen shots and php code are of no use when looking for HTML/CSS problems.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 11-18-2008, 02:47 AM Re: DIV issue
Mark_anderson's Avatar
Skilled Talker

Posts: 58
Trades: 0
Can't reply because no link available for the site. Provide a link.
Mark_anderson is offline
View Public Profile
 
Old 11-18-2008, 01:57 PM Re: DIV issue
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
http://www.google.com/search?q=%22I%...s=xbq&filter=0
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
View Public Profile Visit wayfarer07's homepage!
 
Old 11-19-2008, 01:28 AM Re: DIV issue
Average Talker

Posts: 25
Trades: 0
Some people offered some great suggestion.
Example link: http://www.trackdevil.com/misc/wdf/div-test/
from:
http://www.webdesignforum.com/5861-div-issue.html
__________________
Impossible means I'm possible.
softhink is offline
View Public Profile
 
Old 11-19-2008, 03:14 AM Re: DIV issue
Isabella_Smith's Avatar
Ultra Talker

Posts: 285
Trades: 0
This thread is not true. Its spam see the lik given by wayfarer07 .


Last edited by Isabella_Smith; 11-19-2008 at 03:15 AM..
Isabella_Smith is offline
View Public Profile
 
Closed Thread     « Reply to DIV issue
 

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