Associate
- Joined
- 1 Apr 2010
- Posts
- 2,146
- Location
- South Shields
I am developing a website for myself, and as part of my University project, however we were told to only use XHTML 1.1, which is ok, however you cannot style your page within the HTML code, all has to be done within CSS.
The predicament i have is that i have both an image, and a few lines of text within one single div. I want the text to stay normal, default alignment, however change the alignment of my Image to be in the centre of the div?
CSS for Div;
Hopefully somebody may know or have an idea to try, im resorting to making a separate div within that div for an image class, allowing me to centre the image without affecting the text.
I will see if it works.
Ty for any replies in the mean time.
The predicament i have is that i have both an image, and a few lines of text within one single div. I want the text to stay normal, default alignment, however change the alignment of my Image to be in the centre of the div?
CSS for Div;
Code:
#wrapper #bodyArea #left {
width: 70%;
float: left;
clear: both;
padding: 10px;
color: #fff;
font-weight: bold;
}
Hopefully somebody may know or have an idea to try, im resorting to making a separate div within that div for an image class, allowing me to centre the image without affecting the text.
I will see if it works.
Ty for any replies in the mean time.
