473,799 Members | 2,907 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

apply border on image in a class.

2 New Member
my blog is http://octoberflyhasno wings.tabulas.c om

I tried
img{border: 10px #aeaeae}

then ALL the images in the blog have border around it. including the usericons.

I only want the image in the entries to be wrapped.
so the class is entry. but i have no control over the image posted in every entries.

<div class="entry">
<!--ENTRY['DATA']-->
<!--ENTRY['ATTACH']-->

I don't even know what code to start with.

I tried starting with
.entry{...
and I can't specify the image inside to be bordered around. If I do so, the whole box would be bordered.
So can anyone please help? I'm really sorry if it's a simple problem.

p/s: I never learn css before. I only read them from w3schools.com
May 16 '10 #1
2 1703
drhowarddrfine
7,435 Recognized Expert Expert
In your main CSS page, do:
.entry img{border..... .}
May 16 '10 #2
octoberfly
2 New Member
THANK YOU SO MUCH! that little code solves it. thank you thank you.
May 16 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
12802
by: JLahm | last post by:
I have defined a class for my images called .image that specifies the default border color, width and style. I'd like to be able to have the pseudo elements link, visited and active have one color and style, while the hover class has a different color and style. I have the entries: a:link .image { border-color: #151515; border-style: solid; border-width: 2px; }
6
3321
by: QuasiChameleon | last post by:
Hi, I'm trying to create a grayscale image class that reads and writes grayscale Targa format. This works well with smaller images, but corrupts larger images and creates a "Segmentation fault (core dumped)" error. I am at a loss as to why this works only part of the time. I hope it's proper etiquette to post the code below (3 files). Can someone please show me what's wrong with the following code? I
3
6104
by: Marcin Kowalewski | last post by:
Hi I've got a stupid problem with code below : using System; using System.Drawing; .... public class CsrcImage :Image { public CsrcImage() { //
2
6133
by: Volly | last post by:
Helo ! I want write console application and I want to reuse my old class, but inside it is used Image class (and System.Drawing.Imaging namespace). I can't complile it. The error is: The type or namespace name 'Drawing' does not exist in the class or namespace 'System' (are you missing an assembly reference?)
1
1583
by: Varangian | last post by:
Hi I have another question about Captcha.... how should I apply a Captcha Image on a Web Form correctlly? Say I have an ASP.NET WebSite.. where should I make the code validity check?. Should I do it on the Page_Load event or on each click or Event where I wish to validate that particular? Thanks!
1
1791
by: kenneth6 | last post by:
Give me some help, pls!! I am doing an image processing project. I decide to import some prepared binary images (in binary BMP format) into the resources sections of a MFC C++ project. The function I want is actually to get the binary pixel to the (array??) and then setpixel (draw) after processing an image. (i.e. two images, one original one processed, are shown on the window at the same time) I found some classes that may be helpful to me...
2
4365
by: veer | last post by:
Hi how border is applied to excel sheet when i transfer the data into it i,e if i transfer five rows then border should be applied to five rows and if i transfer 10 rows then border should be on ten rows please give some help
1
988
by: Cousson, Benoit | last post by:
Hi, I'd like to be able to use a nested class (C1) from another sibling nested class (C3). This looks very similar to the nested scopes of functions except that it does not work. class A(object): pass class B(object): class C1(object):
0
200
by: Maric Michaud | last post by:
Le Tuesday 12 August 2008 11:29:18 Cousson, Benoit, vous avez écrit : This is a language limitation. This is because nested scope is implemented for python function only since 2.3 allow late binding of free variables. the scope in class statment is not a closure, so there is only two possible scope in it : local and global. When "class C2(C1):" statment is interpreted, it is in the scope of class B for which a name C1 exists, but it...
3
10685
by: seegoon | last post by:
Hi guys. I'd like to use an image as my border on just the right side of a div, to create an arrow shape on a 'continue' link. I've created the image to use and tried to code it myself, but failed miserably on both Safari and Firefox. Here's my current code: #continue { background-color:#ebebeb; margin:20px 0px 20px 0px; height:45px; border-image-right:url("images/continue-arrow.gif") 100% round; width:80%; float:right
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10219
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10025
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9068
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7563
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5461
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5584
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4138
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.