
abrakatabra
Members-
Content Count
43 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout abrakatabra
-
Rank
Newbie
-
ie7: button with right 0px becomes stretched inside parent
abrakatabra replied to abrakatabra's topic in HTML/XHTML
thank you. it has helped. -
ie7: button with right 0px becomes stretched inside parent
abrakatabra replied to abrakatabra's topic in HTML/XHTML
I am sorry, I forgot to make an important note. I need to have auto width because I am going to translate a name of button dynamically, by javascript. And the name has different length in other languages. So, I cannot set width to certain value. -
Hi all!Can you please give me advice how to align button at right and at bottom? I am trying use right:0px & bottom:0px with absolute position. Such way looks good under FF,safari,opera,ie6,ie8 but ie7 stretches button inside its parent by width.In practice I use div that contains some other nodes except the button, for example textarea. And here I decided to publish this short code with one button only to concentrate on the problem. Here is an example. <!DOCTYPE HTML><html> <head> <title></title> <style type="text/css"> #send{ position:absolute;
-
overflow incorrect works in mozilla for div element
abrakatabra replied to abrakatabra's topic in HTML/XHTML
Thank you for clarification! -
overflow incorrect works in mozilla for div element
abrakatabra replied to abrakatabra's topic in HTML/XHTML
Additionally, I have checked my code with html validator to make sure the html document is well-formed. Only 3 issues are stay, now:validator offers to use css instead of "cellpadding='0' cellspacing='0' border='0'"But my code should work under old browsers, so I do not want to remove them. -
overflow incorrect works in mozilla for div element
abrakatabra replied to abrakatabra's topic in HTML/XHTML
Thank you to notice that!I have changed td -> tr, but it does not help. -
Hi!I would like to have scrolled div element inside of table cell (td element). For this purpose I use 'overflow:auto' css property for the div. But this property does not work in mozilla browser as I expected:mozilla does not show scroll in case content of div is overflow but all other browsers show scrollbar, even IE6!If div declared outside of td of table, for example, inside of body div works as expected.How to do so, in mozilla, in order to div will be scrolled in case of overflow?Note. If I set height of div to < 100%, for example 99%, then scrollbar appears but it will be cut, part o
-
iframe 100% causes to appear scroll bar at main page, why?
abrakatabra replied to abrakatabra's topic in HTML/XHTML
Yes! You are right! changing of display property to "block" is fixed my problem.Thank you very much! Great! -
Hello!I would like to have a stretched iframe by hight at my main page. But when I apply 100% of height to my iframe then main page which keeps the embedded iframe is scrolled like its own content does not fit to it.How to avoid scrolling of the main page?As workaround I use 99% of height of my div which keeps iframe. But 100% iframe looks pretty good...1.html <!DOCTYPE html><html> <head> <link rel="stylesheet" href="1.css" type="text/css" media="all"> <script type="text/javascript" src="jquery-1.4.4.js"></script> <script type="text/javascript">
-
contentaditable children ndoes do not catch presskey event?
abrakatabra replied to abrakatabra's topic in JavaScript
Which function should I pass id, on which event?I would like to do so<html> <body> <div contenteditable="true"> <pre onkeypress="some_function(this)">a</pre> </div> </body></html> but unfortunately, keypress event is not thrown by unknown reason for me. -
contentaditable children ndoes do not catch presskey event?
abrakatabra replied to abrakatabra's topic in JavaScript
More exactly, it is not so easy. So I prefer to catch keypress events for each <pre> tag. This is my question:<html> <body> <div contenteditable="true"> <pre onkeypress="alert('event is caught')">a</pre> </div> </body></html> why when I type something between <pre></pre> tag alert does not show dialog with message 'event is caught'? -
contentaditable children ndoes do not catch presskey event?
abrakatabra replied to abrakatabra's topic in JavaScript
really, it is an attempt to implement syntax highlight text editor. Each <pre> tag has its own style to mark out special words. -
contentaditable children ndoes do not catch presskey event?
abrakatabra replied to abrakatabra's topic in JavaScript
thescientist and dsonesuk, thanks a lot for attempt to understand me!dsonesuk you almost right.I would like to get something like this: <title>Untitled Document</title><script type="text/javascript">/*<![CDATA[*//*---->*/function callback(node) { var info=document.getElementById("info"); info.innerHTML+="a";//really here is can be any character. Because 'info' div is used to indicate onkeypress event occurs var retvalue=true; var current_char=node.innerHTML.charAt((node.innerHTML.length)-1); if(current_char == " ") { // a space is a sign of user is typing new word. A -
contentaditable children ndoes do not catch presskey event?
abrakatabra replied to abrakatabra's topic in JavaScript
I need to have web editor inside of it user can format text. Unfortunately, it is not possible to do so with textarea.In this editor I should catch user typing and filter it, for example, when user type 'space' I can append new pre node to body or div editable tag. -
contentaditable children ndoes do not catch presskey event?
abrakatabra replied to abrakatabra's topic in JavaScript
in my example, I would like content of div tag (id="info") is replaced by "aaaa..." when I type something between <pre></pre>, i.e. callback() should be call on each type. But it does not occur in case I set contenteditable to true for div.