Home » Developer & Programmer » Application Express, ORDS & MOD_PLSQL » item positioning - select list
item positioning - select list [message #188748] Mon, 21 August 2006 07:59 Go to next message
tom01
Messages: 29
Registered: July 2006
Junior Member
hello!

does anybody know how can I specify the display position of a select list? I would like to place it in a specific place, above a button for example.

Tom
Re: item positioning - select list [message #189442 is a reply to message #188748] Thu, 24 August 2006 10:38 Go to previous messageGo to next message
rigatonip
Messages: 50
Registered: December 2005
Member
To put it in a specific place you'd need to use a css style or come up with some sort of table layout approach to put it where you want. To simply put it above a button either of the two approaches below will work (break tag or css styles). The latter approach will give you more flexibility.

create or replace procedure test_select2
is
begin

htp.p('<html>');

htp.p('<form name="form1" action ="">');

htp.p('<select name="select1" class="blkSelect">');
htp.p('<option>Test1</option>');
htp.p('</select>');

htp.p('<br>');

htp.p('<input type="submit" value="Submit">');
htp.p('</form>');

htp.p('</html>');

end;

or you can use style sheets (inline or external) which will give you some more flexibility:

CREATE OR REPLACE procedure test_select1
is
begin

htp.p('<html>');
htp.p('<head>');
htp.p('<style type="text/css">');
htp.p(' .blkSelect { display: block; margin-bottom: 0.5em; }');
htp.p('</style>');
htp.p('</head>');

htp.p('<form name="form1" action ="">');

htp.p('<select name="select1" class="blkSelect">');
htp.p('<option>Test1</option>');
htp.p('</select>');
htp.p('<input type="submit" value="Submit">');
htp.p('</form>');

htp.p('</html>');

end;
/
Re: item positioning - select list [message #189581 is a reply to message #189442] Fri, 25 August 2006 03:05 Go to previous message
tom01
Messages: 29
Registered: July 2006
Junior Member
Thanks!

That really helps!

Best regards,
Tom
Previous Topic: Different behaviour
Next Topic: DBMS_METADATA
Goto Forum:
  


Current Time: Wed Dec 07 22:30:59 CST 2016

Total time taken to generate the page: 0.10679 seconds