ballouta Posted September 25, 2008 Share Posted September 25, 2008 Hello I have this code in a CSS file: .sResultsRow { PADDING-BOTTOM: 8px; CURSOR: pointer; PADDING-TOP: 8px; BORDER-BOTTOM: #d9d9d9 1px solid } .sResultsImgPreview { PADDING-RIGHT: 10px; PADDING-LEFT: 2px; WIDTH: 125px } is it possible to insert them into <head> of the sampe page instead of using a CSS file? How thank you Quote Link to comment Share on other sites More sharing options...
stublackett Posted September 25, 2008 Share Posted September 25, 2008 Hi ballouta Yes it is possible In between the opening <head> and the closing </head> Add the following <style type="text/css"> .sResultsRow { padding-bottom : 8px; cursor : pointer; padding-top : 8px; border-bottom: #d9d9d9 1px solid } .sResultsImgPreview { padding-right: 10px; padding-left: 2px; width: 125px; } </style> So it should look like this : <head> <style type="text/css"> .sResultsRow { padding-bottom : 8px; cursor : pointer; padding-top : 8px; border-bottom: #d9d9d9 1px solid } .sResultsImgPreview { padding-right: 10px; padding-left: 2px; width: 125px; } </style> </head> Quote Link to comment Share on other sites More sharing options...
haku Posted September 25, 2008 Share Posted September 25, 2008 If you are using XHTML and not HTML, you will have to change all those caps to small letters, or it will invalidate your code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.