Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-03-2012, 09:52 PM   PM User | #1
darkvallena
New to the CF scene

 
Join Date: Apr 2011
Location: Toronto
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
darkvallena is an unknown quantity at this point
Div code help

Hello again, I have another issue.

For my post: http://www.madeinregio.com/2012/10/0...to-recruiting/

password: sebastian

The coding used here is:

<img src="http://www.madeinregio.com/wp-content/uploads/2012/10/steph111.png" alt="" title="" width="900" height="567" class="alignnone size-full wp-image-2001" />
<div style="position: relative; top: -547px; left: 45px; width: 1000px; z-index: 2">
<h1><font size="6">Ride for the fall&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp; Sebastian 3<sup>rd</sup> floor, Stephon 4<sup>th</sup> floor
</h1></div></font>

and it works perfectly on Google Chrome:



but Safari and Firefox both show this:


I want Safari and Firefox to show it the same way as Google Chrome. Hopefully someone can help me with this. The CSS could possibly be the issue. or possbily the &ensp; code doesnt work well with the other browsers.
darkvallena is offline   Reply With Quote
Old 10-03-2012, 10:56 PM   PM User | #2
jamaks
New Coder

 
Join Date: Sep 2012
Location: Scottish Borders
Posts: 36
Thanks: 1
Thanked 9 Times in 9 Posts
jamaks is on a distinguished road
Hi, looks like you intended using
Code:
&nbsp;
rather than
Code:
&ensp;
Stands for No Breaking SPace. Jim
jamaks is offline   Reply With Quote
Old 10-04-2012, 03:38 PM   PM User | #3
darkvallena
New to the CF scene

 
Join Date: Apr 2011
Location: Toronto
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
darkvallena is an unknown quantity at this point
Once creates space on a line, when makes space between lines?

Is it not right to use it?
darkvallena is offline   Reply With Quote
Old 10-04-2012, 04:18 PM   PM User | #4
jamaks
New Coder

 
Join Date: Sep 2012
Location: Scottish Borders
Posts: 36
Thanks: 1
Thanked 9 Times in 9 Posts
jamaks is on a distinguished road
Hi, not a good idea to use it repeatedly. To change the spacing between lines add a line height within you CSS style. Since you are using inline styling I would suggest using a style block along the lines of
Code:
<style type="text/css">
h1{font-size:24px;line-height:32px;}
</style>
Adjust these figures to suit your preference, and any other styles you wish to adopt would be palaced within the same style holder. The reason for giving the h1 header a px size is that different browsers display a header at a different size according to their own inbuilt stylesheet and giving a fixed value should have it display the same size in all browsers.
On the subject of getting the space right between the text you may wish to try a transparent image sized to fit and use
Code:
<h1>Ride for the fall<img src="path-of-image/image.gif" width="300" height="20" alt="spacer">Sebastian 3<sup>rd</sup> floor, Stephon 4<sup>th</sup> floor</h1>
Hope this gives you some ideas. Jim
jamaks is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 10:46 PM.


Advertisement
Log in to turn off these ads.