To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > ClientSide Technologies

ClientSide Technologies Discuss HTML/CSS/Javascript, and any other client-side technologies, here.

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-16-2006, 03:13 PM   #1
hadoob024
Senior Member
 
Join Date: May 2005
Location: Atlanta
Posts: 237
Location of displayed image varies between browsers

Hello. I'm having problems with where my "ad" images are being displayed. It works fine in Netscape and Firefox, in that the sample ads are displayed properly below the menu on the left-hand side. However, in IE, the sample ads are displayed immediately to the right-side of the menu. Here's my site:

http://www.ownersfinancingrealestate...chlistings.php

Can anyone confirm this issue? Anyone know why it's happening? Thanks!!
hadoob024 is offline   Reply With Quote
Old 02-16-2006, 05:54 PM   #2
Weedpacket
Custom User Title™
 
Weedpacket's Avatar
 
Join Date: Aug 2002
Location: Rapid Offensive Unit "Foreign Object Damage"
Posts: 19,128
Well, the fastest way of fixing this would be to add a CSS attribute
style="clear:both;" to the <div> that contains the ad.
__________________
On two occasions I have been asked [by Members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Weedpacket is offline   Reply With Quote
Old 02-16-2006, 07:46 PM   #3
hadoob024
Senior Member
 
Join Date: May 2005
Location: Atlanta
Posts: 237
What does the CSS attribute style="clear:both;" do? I'm trying to think if I can use a workaround. How much is involved in learning CSS? Like is it a quick set of rules or is it something that can get pretty in-depth?
hadoob024 is offline   Reply With Quote
Old 02-17-2006, 11:50 PM   #4
bpat1434
NMaOtBG
 
bpat1434's Avatar
 
Join Date: Oct 2004
Location: Around 255.255.255.0
Posts: 8,093
Clear: both
It defines what can be shown to the sides of that element. If you clear left, nothing can be shown to the left. If you clear right, nothing can be to the right of that div.

Here.... if you look at my stagnant site (yeah, not much on there but I have no time! lol) Patterson Web Services the entire design is CSS. You can view my CSS code and see how a clear works. You can also read up on clearing items over at the w3schools.com site.

CSS is easy to learn; however, that's not to say it doesn't take time. You need to have a will to learn, and a want to learn it. It's tough to code because you have to code on an almost per-browser basis. A tip would be to start coding for Safari, Konquerer, and Firefox first. Then use "hacks" and work-arounds for IE. If you google for IE hacks and CSS, you'll get plenty of hits.

CSS can get really in depth, or it can just be something simple. CSS is a set of rules with definitions. You set up "rules" by defining what elements (and their classes/ids) are to be "styled". The definition outlines how the element will look. You can read more on the w3schools.com site. If you're interested in getting into css, I'd say you spend some time just learning about the basics (like styling links, forms, and the like). Then you work on moving away from a table layout. The hardest part about CSS is getting the elements to work with eachother in every browser. It's doable, just takes time.

EDIT
Your ads don't show up properly in Firefox on linux (as of 22;51 Feb 17, 2006 EST). The ads show up underneath the left column!!

You should use a clear: right; to solve the issue.

One other way is to float your table & navigation left, and the ads right, then just clear both after the ads.

It also doesn't help that your table takes up 97% of the browsers realestate:
HTML Code:
<table width="97%" border="0" align="center">
This isn't even really a CSS quesiton... you're using a table layout.... fix your table and you'll fix the ads....

Last edited by bpat1434; 02-17-2006 at 11:56 PM.
bpat1434 is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 -4. The time now is 08:03 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.