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-25-2011, 12:27 AM   PM User | #1
AndyH1
New Coder

 
Join Date: Sep 2011
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
AndyH1 is an unknown quantity at this point
IE inserting a line break when using <b>?

Heres an extract from the HTML code:
Code:
 <b>Full Set Gel Nail Enhancements </b>(Sculpted or tip)<b><div class="spaced"> £40 </div><br/>
                Full Set Liquid and Powder Enhancements </b>(Sculpted or tip)<b><div class="spaced"> £40 </div><br/>
CSS:
Code:
.spaced {
  float: right;
}
Ok this looks fine on firefox, menu items in bold on the left and prices in bold floated to the right. The words in brackets are not bolded.

For some reason IE is doing a line break and putting the first bracketed words on a new line, yet the second '(Scultped or tip)' is displayed fine as I want it. To me the code looks the same! Anyone know why this is happening?

The menu is on this page http://www.loveyournails.co/menu.html
AndyH1 is offline   Reply With Quote
Old 10-25-2011, 12:38 AM   PM User | #2
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
You have quite a few coding errors. One thing is, you cant put a block level element inside an inline element...ie <div> inside <b>.

You can view your errors here.
__________________
Teed
teedoff is offline   Reply With Quote
Users who have thanked teedoff for this post:
AndyH1 (10-25-2011)
Old 10-25-2011, 12:49 AM   PM User | #3
AndyH1
New Coder

 
Join Date: Sep 2011
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
AndyH1 is an unknown quantity at this point
Thanks im looking through the validator, ive validated every other page and got 0 errors

im just trying to do this page but some of the errors I dont know how to sort out as errors are being thrown up by the javascript menu, like it doesnt recognise data-openimage and data-closeimage and I dont know what to do about it

So I will have a look about the block and inline elements.

Do you know why there is a thick black line at the top and its the twitter link? Ive tried changing so many things and its still there (only in IE)

edit: Im looking at it and I understand what you mean, but I cant see how to change it, how do i get the prices to float to the right without calling the floating class all the time? Sorry im a noob

Last edited by AndyH1; 10-25-2011 at 12:55 AM..
AndyH1 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 06:34 PM.


Advertisement
Log in to turn off these ads.