Jump to content
Stef's Coding Community
Sign in to follow this  
LenaCa

How to target a banner in CSS?

Recommended Posts

Please forgive for a rookie question. I haven't been doing much CSS stuff in the past year. I really am not sure how to target my banner in CSS? Website is navigate into joy dot com I want to position the web banner better, but I'm not sure how to target it, when writing CSS code.

 

Help is much appreciated!

Share this post


Link to post
Share on other sites

The general banner? The slides within the banner? The banner has an id of #banner, and the slides within the banner has a class of .slide. What exactly do you mean by "position the banner better"?

Share this post


Link to post
Share on other sites

I'm sorry I meant my ad banner in the sidebar! I was going to line it up with my newsletter on top.

 

Here's my code I have now that doesn't work:

 

In css:

a .srbanner { padding-left: 5px; }

 

In sidebar.php:

<a href="link URL" target=_blank><img class="srbanner" src="URL with jpg" alt=""></a>

Share this post


Link to post
Share on other sites

Adding

#sidebar img {margin-left: -32px;}

will line it up.

 

I'm pretty sure you meant the mind is thirsty, not thirty.....

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...