Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
What to use instead of <DIV>
Old 04-06-2009, 11:39 PM What to use instead of <DIV>
Junior Talker

Posts: 2
Trades: 0
I have a menu script but when I incert <div> </div> code its making it skip a line and not properly aligned, is there anything else I can use instead?

coolist is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-07-2009, 01:06 AM Re: What to use instead of <DIV>
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Do you have a link to your page, or at least all of the code?

Usually a menu is a styled unordered list, sometimes using script for certain display issues. You can put the ul in a div, but you don't have to. Zeroing out margins and padding on the body or wrapper div is usually a good idea.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 04-07-2009, 01:28 AM Re: What to use instead of <DIV>
Novice Talker

Posts: 6
Trades: 0
Yes, you can use <div style="display:inline">data</div>

or use the SPAN tag such as <span>data</span>

hope that helps
__________________

Please login or register to view this content. Registration is FREE
- Convert any file into a webpage
Upsilon is offline
Reply With Quote
View Public Profile
 
Old 04-07-2009, 11:18 AM Re: What to use instead of <DIV>
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Quote:
Originally Posted by coolist View Post
I have a menu script but when I incert <div> </div> code its making it skip a line and not properly aligned, is there anything else I can use instead?

It's not really surprising. Since the default values if a div are to have 100% width, it will mess up your layout. If you want to use them, you'll need to style their width at the very least. But like serandfae said, we can't really debug without code.

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to What to use instead of <DIV>
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21515 seconds with 12 queries