Need Help Web Design (CSS)
2013-12-20, 01:48 AM,
#1
Hello elites. I am having a problem with my website regarding the <img scr> tag. I want all my images on my posts set to a certain width so it won't overlap the other side bars. So I made a command on CSS like this.

Code:
img{
    width:100%;
    max-width:620px;
}

After placing that on my CSS sheet I successfully achieved what I want but new problem appears. The logo of my website also changed and follow the size of the CSS command. Now it looks really bad because the logo is as large as the posts.

Now, can anyone please help me to separate the code from img scr of the logo of my site? Because when I remove the existing code I added on my CSS sheet it will affect all the images I have and will overlap the sidebars. If there is a solution please reply on this post.
2013-12-20, 02:26 AM,
#2
You should the img tag to:
Code:
max-width: 100%;
so it takes the width of it's container, and you can also set a custom class on the logo to overwrite the other css styles.

Anyway if you still need help contact me.
2013-12-20, 02:49 AM,
#3
What you should do is create a class for the images on the side bar and reference that class in the image tag.

This is what your HTML should look like.
Code:
<img class="myclass" src="myimage.jpg">

This is what your CSS should look like.
Code:
.myclass
{
   width: 250px;
}

just change the pixels to the amount you want.

If you need help, send me a PM or contact me via Skype.

Good luck.
Latest Thanks - View all

Awesomeness(2013-12-20 09:06 AM) 
2013-12-20, 03:30 AM,
(This post was last modified: 2013-12-20, 03:30 AM by Atlantis.)
#4
The options above should work.
Give your logo a class or ID

then use the css

#myID, .myClass{
width: 999px; /* Edit to the dimensions of your logo image */
height: 999px;
}

You can always PM or Skype me if you need webdesign help.
Latest Thanks - View all

Awesomeness(2013-12-20 09:06 AM) 


[Image: wI9cuAG.png]
2013-12-20, 09:06 AM,
#5
Thank you guys! Problem fixed! :)


Possibly Related Threads...
Thread Author Replies Views Last Post
  Why customer complaints are occuring in Ecommerce Web Development? How to control it? sureshkumar 3 225 2017-07-03, 09:54 PM
Last Post: imrichard
  Custom Ogads content locker CSS Mikka07 1 439 2017-06-09, 07:22 AM
Last Post: DrKent
  [GET] How To Generate Web Design Assets In Photoshop With Just One Click cindy2145 0 426 2017-04-30, 03:06 AM
Last Post: cindy2145
  OGads Custom CSS - Need Help ashu55 2 1,655 2016-12-15, 02:11 AM
Last Post: weblycos
  help in file css vip2 1 822 2016-11-25, 12:36 AM
Last Post: torothemes




About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top