473,666 Members | 2,101 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Positioning relative v absolute-- Style or functionality, not both

GGG
Neither go the way I want them to... Absolute doesn't get it right
over multiple browsers. Relative puts it in the right place, but only
the portion that it is "relative" the style, #wleMenu, is running.
Holding the cursor over any portion OUTSIDE of this block is not
registering.
Mozilla doesn't do anything, IE will fire off an error, when I go past
"the zone" with "object required" (like the scipting isn't even there)

I have the following CSS code.

#wleMenu

{
position: absolute;
left: 1;
width: 245px;
height: 786px;
}

#twoLine {position:absol ute;bottom:-325;left:-5;width:850;hei ght:40;}
/* ( I've also tried, {position: relative;bottom-770;left;-85;width:
850;height:40;}
(also have had "px" at the back of the width and height) */
--- filebloc1

<script language="javas cript" src="js/t.js"></script>
<!---side menu covers the dividing bar and the side menu--->
<div id="oneLine" class="bi24" &nbsp;</div<!---dividing bar--->
<div id="wleMenu" class="bi52" align='center' <!---side menu--->

<div align='center'> <div class="bi40">Se rvices</div></div>
<br>
<!--colors the menu section-->
<a href="index.php " onMouseOut="swa pImgRest()"
onMouseOver="sw apImg('j1','',' images/r180hom.gif',1) "><img name="j1"
alt="8" border="0" src="images/b180hom.gif" ></a>
<a href="intro.php " onMouseOut="swa pImgRest()"
onMouseOver="sw apImg('j2','',' images/r180care.gif',1 )"><img name="j2"
alt="8" border="0" src="images/b180care.gif" ></a>
<a href="compSvc.p hp" onMouseOut="swa pImgRest()"
onMouseOver="sw apImg('j3','',' images/r180cs.gif',1)" ><img name="j3"
alt="8" border="0" src="images/b180cs.gif" ></a>
<a href="Skills.ht m" onMouseOut="swa pImgRest()"
onMouseOver="sw apImg('j4','',' images/r180pgm.gif',1) "><img name="j4"
alt="8" border="0" src="images/b180pgm.gif"></a>
<a href="weblinks. php" onMouseOut="swa pImgRest()"
onMouseOver="sw apImg('j5','',' images/r180ws.gif',1)" ><img name="j5"
alt="8" border="0" src="images/b180ws.gif" </a>
<a href="vertgen.p hp" onMouseOut="swa pImgRest()"
onMouseOver="sw apImg('j8','',' images/r180fs.gif',1)" ><img name="j8"
alt="8" border="0" src="images/b180fs.gif" </a>

<a href="ebyaTA.ph p" onMouseOut="swa pImgRest()"
onMouseOver="sw apImg('j6','',' images/r180ta.gif',1)" ><img name="j6"
alt="8" border="0" src="images/b180ta.gif" </a>
<a href="#" onMouseOut="swa pImgRest()"
onMouseOver="sw apImg('j7','',' images/r180msg.gif',1) "><img name="j7"
alt="8" border="0" src="images/b180msg.gif" </a>
<br><br>
<div class="bi40" align='center'> On the Lighter Side</div>
<br><br>
<a href="#" onMouseOut="swa pImgRest()"
onMouseOver="sw apImg('j9','',' images/r180int.gif',1) "><img name="j9"
alt="8" border="0" src="images/b180int.gif" </a>
<a href="#" title="coming Soon" onMouseOut="swa pImgRest()"
onMouseOver="sw apImg('j10','', 'images/r180trav.gif',1 )"><img
name="j10" alt="8" border="0" src="images/b180trav.gif" </a>
<!---expand this one to cover the first I-40, my trip to PA/west
coast/experiences in PA. Make it entertaining, wahoo.--->
<a href="swtoc.htm l" title="Yes, these were my experiences"
onMouseOut="swa pImgRest()" onMouseOver="sw apImg('j11','', 'images/
r180AM.gif',1)" ><img name="j11" alt="8" border="0" src="images/
b180AM.gif" </a>

</div><!--closes wlemenu-->

----Fileblock2--- this follows the above... it's the bottom menu I
want to have functionality with when doing a relative position, and
which very little of it works in its current stead.
<div id="twoLine" class="bi47">
<table width="775" " border="0" cellspacing="0" cellpadding="0" >
<tr>
<td width="55" ><a href="index.php "
onMouseOut="swa pImgRest()" onMouseOver="sw apImg('I1','',' images/
bk90hom.gif',1) "><img name="I1" alt="8" border="0" src="images/
r90hom.gif" ></a></td>
<td><a href="intro.php " onMouseOut="swa pImgRest()"
onMouseOver="sw apImg('I2','',' images/bk90care.gif',1 )"><img name="I2"
border="0" src="images/r90care.gif" ></a></td>
<td width="87"><a href="Skills.ht ml"
onMouseOut="swa pImgRest()" onMouseOver="sw apImg('I4','',' images/
bk90pgm.gif',1) "><img name="I4" border="0" src="images/r90pgm.gif" ></
a></td>
<td ><a href="portfolio .htm" onMouseOut="swa pImgRest()"
onMouseOver="sw apImg('I8','',' images/bk90ebya.gif',1 )"><img
src="images/r90ebya.gif" name="I8" border="0"></a></td>
<td ><a href="http://www.responsemar keting.com/"
onMouseOut="swa pImgRest()" onMouseOver="sw apImg('I5','',' images/
bk90msg.gif',1) " target="_blank" ><img name="I5" border="0" src="images/
r90msg.gif" ></a></td>
<td ><a href="http://rjlauren.com/rjlauren/index.html"
onMouseOut="swa pImgRest()" onMouseOver="sw apImg('I6','',' images/
bk90fs.gif',1)" target="_blank" ><img name="I6" border="0" src="images/
r90fs.gif"></a></td>
<td width="87"><a href="compSrv.p hp"
onMouseOut="swa pImgRest()" onMouseOver="sw apImg('I3','',' images/
bk90cs.gif',1)" ><img name="I3" border="0" src="images/r90cs.gif" ></
a></td>
<td ><a href="contact.h tm" onMouseOut="swa pImgRest()"
onMouseOver="sw apImg('I7','',' images/bk90trav.gif',1 )"><img name="I7"
border="0" src="images/r90trav.gif" width="50" height="28"></a></td>
</tr>
<tr>
<td align='center' class="smallpr" colspan="8">FAQ | <a
href="mailto:da ***@steric.net" Contact Me</a</td>

<td></td>

</tr>
</table>
</div>
all in the form of php includes (again, it does not matter if I hard
code it into a file or use server includes ala php--- same result.)
When I use "relative" (the second option), I get what I want. Just
nothing outside of the wleMenu works.
When I use "absolute", the design really sucks, but I get
functionality.
I know it is better to use relative, but how do I get the other damned
options to work the way they are supposed to?

I'm too embarassed to show my site.

Mar 10 '07 #1
1 3178
GG*@steric.net wrote:
>
I have the following CSS code.
Don't post code, post a URL.
I'm too embarassed to show my site.
Maybe so, but we still need to see it if you expect to get some help
with it.

BTW, the first thing you should do is validate your code. This will
eliminate syntax errors as a cause of rendering problems. Your code
definitely has errors in it.
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/

--
Berg
Mar 10 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
11005
by: Ken Kast | last post by:
Here's my situation. I have a statically positioned table that has an image in a cell. I also have some layers, defined by absolute-positioned DIVs for some animation. Everything works until I scroll/resize. Then the image "moves" on the screen but the animation doesn't. The net effect is that their relative positioning changes. I'd like to have it be that they would stay in the same relative position. I want to keep the image as an...
24
2207
by: Wim Roffal | last post by:
I am trying to create a menu system. The mainmenu is a table <table><tr><td>menu1</td><td>menu2</td></tr></table> No I try insert the submenu so that it becomes relative to the main menu item. For menu1 the relevant code then becomes: <td style="position:relative;">menu1<div style="position:absolute; top:20; left:0;">
1
1802
by: Fred Nelson | last post by:
Hi: I'm working on one of my first web applications in asp.net 2.0 and I'm having a problem with absolute versus relative positioning of controls that I place on pages that use master pages with Content Place Holders. The controls placed in a content area with absolute or relative positioning can easily "drift" beyond my Content Place Holder. I'm trying to put a "footer" on every page of the site and this is
2
5358
by: drillbatting | last post by:
Hi, I have a site with a heap of small menus in various elements. It looks something like this (inline style's etc for readability): <div>
0
564
by: GGG | last post by:
Neither go the way I want them to... Absolute doesn't get it right over multiple browsers. Relative puts it in the right place, but only the portion that it is "relative" the style, #wleMenu, is running. Holding the cursor over any portion OUTSIDE of this block is not registering. Mozilla doesn't do anything, IE will fire off an error, when I go past "the zone" with "object required" (like the scipting isn't even there) I have the...
3
8970
by: mikewse | last post by:
I have a strange problem where it seems IE is doing the correct layout but Firefox and Safari isn't. I think I'm probably wrong, and there is something in the standards that say behaviour should be like Firefox does, but could someone tell me what is right? In the below code I have element trees with three DIVs; the outer DIV establishes a positioning context and the "middle" DIV uses absolute positioning to put its top left corner in the...
1
1466
by: Froggluver | last post by:
I have some experience with CSS. Just enough to be dangerous in fact. :) I had a general question about positioning. Is it possible create a box that is absolutely positioned on a page, and then place boxes inside of that that are relatively positioned, so that they flow with the page? I am aware absolute is just that - absolute, and I know that relative divs move in relation to the parent div. What pitfalls could arise? Would it be better...
1
1171
by: baburk | last post by:
Hi, Can anybody tell me what is the Diffrence between Relative, Absolute, Physical Path Thanks in advance
1
2647
by: mfaisalwarraich | last post by:
hi everyone, i have recenlty started web designing and im not very much familiar with the CSS techniques. i have gone through tutorial like w3schools but unable to understand the CSS position property i.e. position: static, relative, absolute or fixed. Please anybody tell me about these properties in detail with some examples so i can understand it. I shall be grateful. waiting for reply. Thanking you. Regards Faisal
0
8449
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8360
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8784
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8556
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8642
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1777
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.