| | |
mozilla firefox problem with text in div tag
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2006
Posts: 57
Reputation:
Solved Threads: 0
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?
<!--
#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?
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
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?
Can you post your HTML, as well?
•
•
Join Date: Aug 2006
Posts: 57
Reputation:
Solved Threads: 0
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.
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.
![]() |
Similar Threads
- How to correct this javascript UNDER Mozilla Firefox? (JavaScript / DHTML / AJAX)
- Bookmark function in mozilla firefox (HTML and CSS)
- Firefox problem - can't install update and Thunderbird -"fights" with Netscape! (Windows NT / 2000 / XP)
- Internet explorer stopped working after using mozilla firefox (Windows NT / 2000 / XP)
- mozilla firefox 0.8 (Windows NT / 2000 / XP)
Other Threads in the HTML and CSS Forum
- Previous Thread: DIV help
- Next Thread: index.html AND home.html WHY?
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






