User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 427,800 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,819 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 5277 | Replies: 3
Reply
Join Date: Aug 2006
Location: braintree
Posts: 57
Reputation: bazmanblue is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
bazmanblue bazmanblue is offline Offline
Junior Poster in Training

mozilla firefox problem with text in div tag

  #1  
Nov 3rd, 2006
I have produced the following code so that all div tags mmove with the browser[HTML]<style type="text/css">
<!--
#Layer1 {
width:800px;
height:800px;
margin:auto auto;
overflow: hidden;
}
#Layer2 {
position:relative;
width:501px;
height:115px;
z-index:1;
left:280px;
bottom:780px;
background-color: #FFFFFF;
}
#Layer3 {
position:relative;
width:250px;
height:115px;
z-index:2;
left:20px;
bottom:895px;
background-color:#FFFFFF;
}
#Layer4 {
position:relative;
width:250px;
height:625px;
z-index:3;
left: 20px;
bottom: 880px;
background-color:#FFFFFF;
text-align:left;
}
#Layer5 {
position:relative;
width:501px;
height:625px;
z-index:4;
left: 280px;
bottom: 1505px;
background-color:#FFFFFF;
}
-->
</style>[/HTML]
I'm finding that when i insert text in the child div tags that the whole child div tag moves down the screen for some reason in mozzilla firefox. can anyone help me with this?
To get 1000 links to free ad sites visit
http://www.freeaddsgalore.me.uk
For FREE:!:
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,590
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 35
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: mozilla firefox problem with text in div tag

  #2  
Nov 3rd, 2006
It's likely related to "relative" positioning. The position of the element is relative to the content of the parent element. I explain positioning in this article.

Can you post your HTML, as well?
Reply With Quote  
Join Date: Aug 2006
Location: braintree
Posts: 57
Reputation: bazmanblue is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
bazmanblue bazmanblue is offline Offline
Junior Poster in Training

Re: mozilla firefox problem with text in div tag

  #3  
Nov 3rd, 2006
Maybey i should just give up on the whole margins being center on the browser.
If there was just one browser it would be fine.
If i have no margin:auto auto i think i will be alright with text. I will show you my website once its finished to show you what i have been trying to do.

The problem with css is that if somone changes something in the view panel like text size it can mess a whole page up and the text might run over something else.
To get 1000 links to free ad sites visit
http://www.freeaddsgalore.me.uk
For FREE:!:
Reply With Quote  
Join Date: Aug 2006
Location: braintree
Posts: 57
Reputation: bazmanblue is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
bazmanblue bazmanblue is offline Offline
Junior Poster in Training

Re: mozilla firefox problem with text in div tag

  #4  
Nov 3rd, 2006
The[HTML]p { margin: 0 auto;
padding: 0; } [/HTML]
seems to have helped thanks!
To get 1000 links to free ad sites visit
http://www.freeaddsgalore.me.uk
For FREE:!:
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 2:08 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC