Reply
question about strong tag and ie6
Old 10-12-2009, 02:43 AM question about strong tag and ie6
Super Talker

Posts: 143
Trades: 0
1.
when i have a text which is 2 or 3 words only to be displayed in bold and below this a paragraph starts with a vertical gap, sometimes i change the strong tag to display as block and set the bottom margin, here because there is no need for any header tags as the text is 2 or 3 words and in bold i use this method also the para below is the 1st paragraph

my code is

<strong>strong text</strong>
<p>
paragraph
</p>


strong{
display: block;
margin: 0 0 10px 0;
}


it works however i wanted to know if setting strong to display as block is a good idea or if there is any other alternative


2.
when i have for example a container div whose width for example is 500px and this div hold 5 inners divs and the addition of all these inner divs adds up to 500px, sometimes what i have noticed is only in ie6 the last div starts in the next line though the total of all inner divs is 500px with no margins or padding added to neither the container div or any of the inner divs

is there any reason why the last div starts in a new line only in ie6. also this behavior happens very rarely and most of the time it works fine in ie6.

the link for this example is at
http://sudhakargolakaram.co.in/innerdivs.html

the code is

<div class="row1outer">

<div class="col1">
col1
</div>
<div class="col2">
col2
</div>
<div class="col3">
col3
</div>
<div class="col4">
col4
</div>
<div class="col5">
col5
</div>

</div>


.row1outer{
float: left;
width: 500px;
height: auto;
margin: 50px 0 0 0;
}

.row1outer .col1{
float: left;
width: 100px;
height: 100px;
background: #777;
}
.row1outer .col2{
float: left;
width: 55px;
height: 100px;
background: #333;
}
.row1outer .col3{
float: left;
width: 250px;
height: 100px;
background: #444;
}
.row1outer .col4{
float: left;
width: 70px;
height: 100px;
background: #555;
}
.row1outer .col5{
float: left;
width: 25px;
height: 100px;
background: #666;
}


please advice.

thanks.
sudhakararaog is online now
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-12-2009, 06:52 AM Re: question about strong tag and ie6
chrishirst's Avatar
Super Moderator

Posts: 26,557
Location: Blackpool. UK
Trades: 0
No it is NOT a good idea to set strong to display: block.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | Crowded Nightclub? | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-12-2009, 02:36 PM Re: question about strong tag and ie6
LadynRed's Avatar
Super Moderator

Posts: 9,036
Location: Tennessee
Trades: 0
You also should not be formatting text to ACT as headings when they are, in fact, HEADINGS. Use the proper tags for the proper context, it's called SEMANTIC MARKUP.

Adding to that - search engines spiders DO pay attention to REAL heading tags.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-13-2009, 12:08 AM Re: question about strong tag and ie6
rednimaT's Avatar
Skilled Talker

Posts: 64
Name: Taminder B.
Location: San Jose, CA
Trades: 0
well it's your own preference I guess...
but I would rather place an extra div and an entry in my stylesheet in case I need to display a non-block strong text.

and for headings, you should always use the headings tags (h1, h2, h3, etc.) instead of bolding. bolding (in terms of most SEO) should be used for your keywords. heading tags have more impact than bold (but bold has more impact that regular text). most people don't like to use the heading tags because the line height is larger (and it acts different in different browsers). the simple solution to this is to make line-height equal 100% in your stylesheet.
__________________
NRG Lab - Web Design Services & Resources
(HTML/PHP/MySQL/JavaScript/AJAX/SEO)

Last edited by rednimaT; 10-13-2009 at 12:10 AM..
rednimaT is offline
Reply With Quote
View Public Profile Visit rednimaT's homepage!
 
Old 10-13-2009, 04:05 PM Re: question about strong tag and ie6
LadynRed's Avatar
Super Moderator

Posts: 9,036
Location: Tennessee
Trades: 0
Quote:
most people don't like to use the heading tags because the line height is larger
That should NOT be a reason either. With CSS you can style each Hx to be the exact size, font weight, font-face, etc. that you want. You should NEVER use the Hx tags based solely on their presentational qualities because you CAN control ALL of that with a few lines of CSS.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to question about strong tag and ie6
 

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.10356 seconds with 13 queries