iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-31-2008, 11:38 AM
WebProWorld Pro
 
Join Date: Aug 2007
Location: Stuttgart Germany
Posts: 174
kruser RepRank 1
Default Inline Styling For Hyperlinks

Hello,

I am confused why the inline styling is not working in the following example. The hyperlink does not space down from the div it is contained in. I am viewing the page in IE6.

Code:
<div style=" height:345px; width:245px; border: 1px solid black; float:left;">
<a href="index.html" style="margin:5px 0px 0px 7px;">Home</a>
</div>
__________________
Best Regards,
Randy
Reply With Quote
  #2 (permalink)  
Old 09-01-2008, 07:23 AM
MuNKyonline's Avatar
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Suffolk, England
Posts: 777
MuNKyonline RepRank 2
Default Re: Inline Styling For Hyperlinks

Add padding to the div?
Reply With Quote
  #3 (permalink)  
Old 09-02-2008, 04:01 PM
WebProWorld Pro
 
Join Date: Aug 2007
Location: Stuttgart Germany
Posts: 174
kruser RepRank 1
Default Re: Inline Styling For Hyperlinks

Tried putting padding for the div "padding: 0px" but that does not help. I really do not want to move the hyperlink down using the div styling. I do not know why the hyperlink styling does not work.

Also displays the same in firefox
__________________
Best Regards,
Randy
Reply With Quote
  #4 (permalink)  
Old 09-02-2008, 09:12 PM
spiderbait's Avatar
WebProWorld Pro
 
Join Date: Oct 2003
Location: Gibsons, BC, Canada
Posts: 271
spiderbait RepRank 5spiderbait RepRank 5spiderbait RepRank 5spiderbait RepRank 5spiderbait RepRank 5spiderbait RepRank 5
Default Re: Inline Styling For Hyperlinks

Can you post a link to the page with the problem?

Also, you might look here for some answers:
SitePoint CSS Reference

It could be an IE6 bug and you might find it referenced here.
__________________
Jade Burnside, Ahead of the Web
What good is your web site if no one can find it?
SEO & Optimized Web Site Design
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

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
Hyperlinks in tables triman Search Engine Optimization Forum 7 02-20-2008 04:11 PM
CSS styling for HR ArthurKay Graphics & Design Discussion Forum 3 09-09-2007 08:19 AM
Styling <ul> as <select>with CSS thindenim Graphics & Design Discussion Forum 2 06-05-2007 04:45 PM
Styling Content with and without CSS Dcrux Content Discussion Forum 19 02-07-2006 06:30 PM
Underline on hyperlinks tangotv Graphics & Design Discussion Forum 17 05-15-2004 08:17 PM


All times are GMT -4. The time now is 04:11 PM.



Search Engine Optimization by vBSEO 3.3.0