Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
You can do that using css. In the first case you would add a margin to the wrapper div to get the spacing. In the second case you need to set the display type to inline for the correct elements. Details in both case depend on the generated html.
Thanks for ur response , but icould not find div.form item label in my style sheet (i am using Inove theme),
i copied and pasted the code sinipet which u gave ,but its still not working , Wat do u?
The code which u gave:
div.form-item label {
display: inline;
}
works for those items which appear inside a box, the one which was cerated by user,
but it is not working for default fields, contents . any other oprion?
Comments
What are you looking to do?
What are you looking to do?
Hi nevets i have created a
Hi nevets
i have created a content type called Student info , and with fields Student Name, ID,Age
In page it is displayed like this:
Student Name:
John
ID:
12
Age:
22
But I want to be displayed like this:
Student Name:
John
ID:
12
Age:
22
or i want to be displayed like this:
Student Name:John
ID:12
Age:22
Can u please tell me how to accomplish this,
Thankx
You can do that using css. In
You can do that using css. In the first case you would add a margin to the wrapper div to get the spacing. In the second case you need to set the display type to inline for the correct elements. Details in both case depend on the generated html.
Open style.css file in your
Open
style.cssfile in your theme folder,Add
display: inline;in todiv.form-item labelstyle in yourstyle.cssfile.Example:
to get this kind of output:
Student Name:John
ID:12
Age:22
Regards,
AnAnD
Hi Anandyrh, Thanks for ur
Hi Anandyrh,
Thanks for ur response , but icould not find div.form item label in my style sheet (i am using Inove theme),
i copied and pasted the code sinipet which u gave ,but its still not working , Wat do u?
Cheers
Please try pasting this code
Please try pasting this code at the end of your style sheet.
Regards,
AnAnD
Because me too was fasing the
Because me too was facing the same problem, then solved it by using that code.
Hi Anandyrh, I placed the
Hi Anandyrh,
I placed the code at end of style sheet :-) , but still doesn't work, any other modifications are there?,
please help me .
Thanks
Hi Anand, Should i do any
Hi Anand,
Should i do any changes in page.tpl too?
No i dont think so.. But that
No i dont think so.. But that code was suppose to fix your problem.
let me check for an other way.
Regards,
AnAnD
I am using Drupal 6, Anand
I am using Drupal 6, Anand
Just try this out
Just try this out please...
(or)
Views 2
Views 2 in Drupal 6 should have everything you need.
Hi Anand, I could find these
Hi Anand,
I could find these codes in style sheet of my theme:
div.admin .left {
float:left;
margin-left:1em;
width:45%;
}
div.admin .right {
float:right;
margin-right:1em;
width:45%;
}
so I think div. is needed
and i followed which u gave me still not working
Thank u
Hi Anand, The code which u
Hi Anand,
The code which u gave:
div.form-item label {
display: inline;
}
works for those items which appear inside a box, the one which was cerated by user,
but it is not working for default fields, contents . any other oprion?
ok, Check the source of your
ok,
Check the source of your content, check which style is applied to the field and set margin or padding to thar pirticular style in your style sheet.
Hi Anand, This worked
Hi Anand,
This worked :
div.field-label {}
Ohh!Thats Good!Thanks &
Ohh!
Thats Great!
Thanks & Regards,
AnAnD
Hi Anand, Can any please let
Hi Anand,
Can any please let me know how to hyperlink a field value.
Example :
Name: John
John should be hyper linked, if user clicks on it it should return to send mail to John.
(or) how to get link next to the name
Thanks
Use Views
Use Views
Hi Anand, Any idea where to
Hi Anand,
Any idea where to modify inside view , is there any code to be included,
Thnks
You can do this using Field
You can do this using Field properties in the views