<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.


 Subscribe in a reader

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

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Sep 3rd, 2004, 07:07
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 26
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
<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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Sep 3rd, 2004, 08:22
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,186
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
It should work with a span tag.... if not add: display:inline; to the inline style of the div.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Sep 5th, 2004, 10:39
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 26
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Rob, I'll give it a go.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Sep 6th, 2004, 09:05
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 26
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Using that display:inline; it all displays fine in firefox, but in IE and crazybrowser, it still uses a line break. Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Sep 6th, 2004, 10:06
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,186
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
Hi Tim... can you post your CSS for this section, and also the HTML?

I'll take a peek!
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Sep 6th, 2004, 10:34
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 26
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Sep 6th, 2004, 10:57
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,186
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
Code: Select all
<div style="margin:0; padding:0 display:inline">username</div>
That *should* work Tim.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old Sep 7th, 2004, 02:56
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 26
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Still getting the line breaks...this is really annoying me now...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
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).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #10  
Old Sep 27th, 2004, 18:18
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
'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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #11  
Old Sep 27th, 2004, 18:39
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,186
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
What spinal said..... obviously as a last resort.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 09:50.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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