<div> function without the line break

This is a discussion on "<div> function without the line break" within the Web Page Design section. This forum, and the thread "<div> function without the line break are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 3rd, 2004, 07:07
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 25
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tim356
<div> function without the line break

I'm using this:
Code: Select all
<div style="filter:progid:DXImageTransform.Microsoft.Glow(Color=red,Strength=3);width: 100%;">Text</div>
Just to have some text appear glowing. What I would like though, is the text to glow as this statement does, but without the line breaks before and after (as div tags do).

Is there a way I can do it with <span> tags or something?

  #2 (permalink)  
Old Sep 3rd, 2004, 08:22
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
It should work with a span tag.... if not add: display:inline; to the inline style of the div.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #3 (permalink)  
Old Sep 5th, 2004, 10:39
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 25
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tim356
Thanks Rob, I'll give it a go.
  #4 (permalink)  
Old Sep 6th, 2004, 09:05
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 25
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tim356
Using that display:inline; it all displays fine in firefox, but in IE and crazybrowser, it still uses a line break. Any ideas?
  #5 (permalink)  
Old Sep 6th, 2004, 10:06
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Hi Tim... can you post your CSS for this section, and also the HTML?

I'll take a peek!
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #6 (permalink)  
Old Sep 6th, 2004, 10:34
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 25
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tim356
I'm actually using this in a vbulletin forum.

For the moderators and admin, which each have a separate usergroup, you have the option to specify an opening and closing html tag to display the usernames of the usergroup. I've been using the above tags to show a glowing red username, however the div tag causes a line break, which upsets the format of the poster info.

I have been testing the tags though in just a normal html file, opening it in different browsers to test.
  #7 (permalink)  
Old Sep 6th, 2004, 10:57
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Code: Select all
<div style="margin:0; padding:0 display:inline">username</div>
That *should* work Tim.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #8 (permalink)  
Old Sep 7th, 2004, 02:56
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 25
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tim356
Still getting the line breaks...this is really annoying me now...
  #9 (permalink)  
Old Sep 21st, 2004, 02:26
Junior Member
Join Date: Jul 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Just to let everyone know, IE filters don't work with inline elements such as <span>. Likewise, if you apply display: inline to an element with a working filter applied, it will no longer work.

As for the problem, the only thing I can think of is create an image (why not take a screenshot?). If you don't want to do that, please post a URL or the relevant code (CSS and X/HTML).
  #10 (permalink)  
Old Sep 27th, 2004, 18:18
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,620
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
'display:inline' is the right method but if it REALLY doesn't work, use a table and split the content in cells....

<table>
<tr>
<td><div>my div that won't dsplay inline with other text</div></td>
<td>my other text</td>
</tr>
</table>
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
  #11 (permalink)  
Old Sep 27th, 2004, 18:39
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
What spinal said..... obviously as a last resort.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Closed Thread

Tags
ltdivgt, function, without, line, break

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[solved] I want to insert a line break minute44 PHP Forum 4 Feb 20th, 2008 12:52
prevent line break after a checkbox pesho318i Web Page Design 7 Feb 6th, 2008 09:34
Fwrite with new line break problem? meth8200 PHP Forum 2 Feb 4th, 2008 15:23
break tag milly Web Page Design 36 Jul 10th, 2007 12:54
Line Break DregondRahl Web Page Design 6 Jun 12th, 2007 15:33


All times are GMT. The time now is 18:02.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43