I am trying to get to perfectly align a paragraph next to a text but I am struggling, can anyone help? Here is what I have:
#aboutme {
padding: 50px;
}
#aboutme img {
border-radius: 50%;
width: 150px;
vertical-align: middle;
}
#aboutme p {
font-size: 16px;
display: table-cell;
color: #212529;
}
.intro_link {
text-decoration: none;
color: #4a69bd;
}
.intro_link:hover {
color: red;
}
<section id="aboutme">
<div class="container">
<img src="./img/face.png">
<p>Welcome to my personal website! In here, you will find out everything about me. You can scroll down to discover more about my portfolio, my weekly activities or ways to contact me. Before doing so, I shall briefly introduce myself! I am a 20 year
old student studying at Concordia University in Montreal. Currently, I am in my 2nd year of education pursuing a Bachelors in Software Engineering. Up to now, my experience has been wonderful. I meet great people that share similar interests, my
network is growing day-by-day and I learn things that interest me. The ultimate goal right now is to graduate and this website will be used to explore everything I learn as I go. For my school assignments and personal projects, you can find them
in the portfolio section. If you are ever interested in checking out my other social etworks (GitHub, LinkedIn, etc...) or to contact me, you can go to the contacts section.
</p>
</div>
</section>
I would like to nicely align the paragraph and the image to make it nice and central but I am struggling to understand the properties, I started learning HTML & CSS yesterday
#aboutme{
padding: 50px;
}
#aboutme img{
border-radius: 50%;
width: 150px;
vertical-align: middle;
float:left;
padding: 0px 10px 10px 0px;
}
/*#aboutme p{
font-size: 16px;
display: table-cell;
color: #212529;
}*/
.intro_link{
text-decoration: none;
color: #4a69bd;
}
.intro_link:hover{
color: red;
}
<section id="aboutme">
<div class="container">
<img src="https://vignette.wikia.nocookie.net/fan-fiction-library/images/1/15/Admin.png/revision/latest?cb=20140917130743">
<p>Welcome to my personal website! In here, you will find out everything about me. You can scroll down to discover more about my portfolio,
my weekly activities or ways to contact me. Before doing so, I shall briefly introduce myself! I am a 20 year old student studying at Concordia University in Montreal. Currently, I am in my
2nd year of education pursuing a Bachelors in Software Engineering. Up to now, my experience
has been wonderful. I meet great people that share similar interests, my network is growing day-by-day
and I learn things that interest me. The ultimate goal right now is to graduate and this website will
be used to explore everything I learn as I go. For my school assignments and personal projects, you can find
them in the portfolio section. If you are ever interested in checking out my other social
etworks (GitHub, LinkedIn, etc...) or to contact me, you can go to the contacts section.
</p>
</div>
</section>
You can use flex to achieve this
Set display: flex to .container
Use align-items: start in .container so that the image will not
get stretched
Add margin-right to #aboutme img for spacing between image and
paragraph
#aboutme{
padding: 50px;
}
#aboutme img{
border-radius: 50%;
width: 150px;
vertical-align: middle;
margin-right: 10px;
}
#aboutme p{
font-size: 16px;
display: table-cell;
color: #212529;
}
.intro_link{
text-decoration: none;
color: #4a69bd;
}
.intro_link:hover{
color: red;
}
.container {
display: flex;
align-items: start;
}
<section id="aboutme">
<div class="container">
<img src="http://via.placeholder.com/500x500">
<p>Welcome to my personal website! In here, you will find out everything about me. You can scroll down to discover more about my portfolio,
my weekly activities or ways to contact me. Before doing so, I shall briefly introduce myself! I am a 20 year old student studying at Concordia University in Montreal. Currently, I am in my
2nd year of education pursuing a Bachelors in Software Engineering. Up to now, my experience
has been wonderful. I meet great people that share similar interests, my network is growing day-by-day
and I learn things that interest me. The ultimate goal right now is to graduate and this website will
be used to explore everything I learn as I go. For my school assignments and personal projects, you can find
them in the portfolio section. If you are ever interested in checking out my other social
etworks (GitHub, LinkedIn, etc...) or to contact me, you can go to the contacts section.
</p>
</div>
</section>
Related
This is my first time here, so please go easy on me. I have been doing coding at university for a couple of months now in one of my modules, and am just finishing off a project and beginning to test it on different browsers. It all runs fairly smoothly apart for one page on Internet Explorer.
On the image below, you'll see that the text that is supposed to go underneath the 'Public Observing' and 'Meetings' section shifts to the edge of the screen and falls off in Internet Explorer.
I've been googling for over an hour now with no luck, I was hoping some of you geniuses will be able to assist me!
Here is some of my HTML and CSS regarding those elements. Thank you very much for shedding any light on this issue!
.observing {
text-align: left;
font-size: 30px;
width: 21%;
padding-bottom: 2%;
}
.observingp {
text-align: left;
font-size: 17px;
width: 40%;
align-content: left;
float: left;
}
.meetings {
text-align: left;
font-size: 30px;
width: 21%;
padding-bottom: 2%;
margin-left: 42.5%;
margin-top: -5%;
}
.meetingsp {
text-align: left;
font-size: 17px;
width: 30%;
align-content: left;
float: left;
margin-left: 3%;
}
<div id="activities-info">
<div id="public-observing">
<h4 class="observing">Public Observing</h4>
<p1 class="observingp">
Public Observing takes place at ‘The New Inn’ at Eccup (LS168AU). Sessions are held regularly during most months, however they stop over Summer when the sunset is too late. Start times vary according to the sunset, and inconsistent dates are due to avoiding
the full moon, which makes observing difficult.
<br><br> Please dress warmly, as observing takes place on an open field. Also, ensure that all children are supervised by a responsible adult. The Society cannot be responsible for accidents on the field.
</p1>
</div>
<div id="meetings">
<h4 class="meetings">Meetings</h4>
<p1 class="meetingsp">
Meetings are held on the second Wednesday of each month at the Quaker Meeting House (LS29DX) between 7pm and 10pm. Meetings usually involve a lecture or presentation of an astronomical topic given by guest speakers or society members. <br><br> Informal
meetings take place two weeks later, on Wednesdays. Here members have an opportunity to express and discuss their interests with personal presentations.
</p1>
</div>
</div>
i recommend to use normalize.css - it is a project to make all borwsers render pages consistently. Just include it as another css befoer your own css file and you will have silmilar results on all browsers.
https://necolas.github.io/normalize.css/
I need some expert help!
I'm trying to move a picture to the right of a div, but when I "float: right;" the picture just moves out of the initial div that it is in. The div that the image keeps moving out of is the "daily-reading" div, and for some reason, I just can't get it to the right without it leaving that div. I am trying to get the picture to sit to the right of my paragraphs, as the paragraphs are right where I need them. Anybody who can help will be greatly appreciated!
Here's my code:
(Starting off at the div we are looking at)
body {
padding: 0;
margin: 0;
font-family: 'Josefin Sans', sans-serif;
}
#main-slider {
height: 100%;
width: 100%;
}
.main-menu-list {
color: white;
float: right;
padding-left: 7px;
position: relative;
bottom: 640px;
}
#menu-contact {
margin-right: 7px;
}
#daily-reading {
background-color: #F0F1F2;
position: relative;
bottom: 22px;
}
#daily-reading-heading {
text-align: center;
margin-left: 185px;
padding: 10px 0 1px;
}
#daily-post p {
width: 600px;
margin-left: 10px;
}
#daily-post-picture {
}
#daily-post-picture img {
height: 200px;
}
<div id="daily-reading">
<h1 id="daily-reading-heading">Today's Reading</h1>
<div id="daily-post">
<p>For we are God’s workmanship, created in Christ Jesus to do good works, which God prepared for us in advance to do. –Ephesians 2:10
<p>Consider the following quote:</p>
<p>"I am only one, but I am one;
I cannot do everything
But I can do something.
What I can do, I ought to do
And what I ought to do
By the grace of God, I will do."
– Canon Farrar</p>
<p>We live in a culture that constantly shines a spotlight on the famous: pretty or especially gifted people (or both!) We live in a celebrity-focused culture. Just think about all of the media devoted to celebrities. It would be great if the church was immune from this culture, but it isn’t. Even the Christian community tends to highlight our best people; from musicians to speakers, to those involved in doing incredible ministry. While I’m not saying that spotlighting is wrong, I am concerned that there are many of us who become disheartened because we know our efforts don’t approach the skills or successes of those of the extremely gifted. I am concerned that some of us give up attempting to make a difference when we think we can’t measure up.</p>
<p>True, we may never be celebrities in the eyes of the world or even within the Christian community. But, God doesn’t call us to be famous. He calls us to love one another. He calls us to give ourselves away to serve others. The needs of our world are great, and we cannot do everything. Still, as part of the body of Christ, we have a unique and invaluable role to play. God has purposely designed us for accomplishing good works in His name.</p>
<p>Stop playing the comparison game. Anyone who plays that game loses. There will always be someone else who does things better or is more effective. We are called to serve the Lord. Our desire should be solely to please Him. Serve Him today to the best of your abilities. Your service will be a sacrifice of praise to the King.</p>
<div id="daily-post-picture">
<img src="https://placehold.it/100">
</div>
</div>
</div>
Move the div #daily-post-picture above the paragraphs and apply float:right;
body {
padding: 0px;
margin: 0px;
font-family: 'Josefin Sans', sans-serif;
}
#main-slider {
height: 100%;
width: 100%;
}
.main-menu-list {
color:white;
float: right;
padding-left: 7px;
position: relative;
bottom: 640px;
}
#menu-contact {
margin-right:7px;
}
#daily-reading {
background-color: #F0F1F2;
position: relative;
bottom: 22px;
}
#daily-reading-heading {
text-align: center;
margin-left: 185px;
padding: 10px 0 1px 0;
}
#daily-post p {
width: 600px;
margin-left: 10px;
}
#daily-post-picture {
float: right;
margin: 0 0 20px 20px;
}
#daily-post-picture img {
height: 200px;
}
<div id="daily-reading">
<h1 id="daily-reading-heading">Today's Reading</h1>
<div id="daily-post-picture" style="float:right">
<img src="photos/bible-reading.jpg">
</div>
<div id="daily-post">
<p>For we are God’s workmanship, created in Christ Jesus to do good works, which God prepared for us in advance to do. –Ephesians 2:10
<p>Consider the following quote:</p>
<p>"I am only one, but I am one;
I cannot do everything
But I can do something.
What I can do, I ought to do
And what I ought to do
By the grace of God, I will do."
– Canon Farrar</p>
<p>We live in a culture that constantly shines a spotlight on the famous: pretty or especially gifted people (or both!) We live in a celebrity-focused culture. Just think about all of the media devoted to celebrities. It would be great if the church was immune from this culture, but it isn’t. Even the Christian community tends to highlight our best people; from musicians to speakers, to those involved in doing incredible ministry. While I’m not saying that spotlighting is wrong, I am concerned that there are many of us who become disheartened because we know our efforts don’t approach the skills or successes of those of the extremely gifted. I am concerned that some of us give up attempting to make a difference when we think we can’t measure up.</p>
<p>True, we may never be celebrities in the eyes of the world or even within the Christian community. But, God doesn’t call us to be famous. He calls us to love one another. He calls us to give ourselves away to serve others. The needs of our world are great, and we cannot do everything. Still, as part of the body of Christ, we have a unique and invaluable role to play. God has purposely designed us for accomplishing good works in His name.</p>
<p>Stop playing the comparison game. Anyone who plays that game loses. There will always be someone else who does things better or is more effective. We are called to serve the Lord. Our desire should be solely to please Him. Serve Him today to the best of your abilities. Your service will be a sacrifice of praise to the King.</p>
</div>
</div>
you just try this
<!DOCTYPE html>
<html>
<head>
<title>stack</title>
</head>
<body>
<div id="daily-reading">
<h1 id="daily-reading-heading">Today's Reading</h1>
<div id="daily-post">
<div id="daily-post-picture">
<img src="photos/bible-reading.jpg">
</div>
<div id="daily-post-content">
<p>For we are God’s workmanship, created in Christ Jesus to do good works, which God prepared for us in advance to do. –Ephesians 2:10
<p>Consider the following quote:</p>
<p>"I am only one, but I am one;
I cannot do everything
But I can do something.
What I can do, I ought to do
And what I ought to do
By the grace of God, I will do."
– Canon Farrar</p>
<p>We live in a culture that constantly shines a spotlight on the famous: pretty or especially gifted people (or both!) We live in a celebrity-focused culture. Just think about all of the media devoted to celebrities. It would be great if the church was immune from this culture, but it isn’t. Even the Christian community tends to highlight our best people; from musicians to speakers, to those involved in doing incredible ministry. While I’m not saying that spotlighting is wrong, I am concerned that there are many of us who become disheartened because we know our efforts don’t approach the skills or successes of those of the extremely gifted. I am concerned that some of us give up attempting to make a difference when we think we can’t measure up.</p>
<p>True, we may never be celebrities in the eyes of the world or even within the Christian community. But, God doesn’t call us to be famous. He calls us to love one another. He calls us to give ourselves away to serve others. The needs of our world are great, and we cannot do everything. Still, as part of the body of Christ, we have a unique and invaluable role to play. God has purposely designed us for accomplishing good works in His name.</p>
<p>Stop playing the comparison game. Anyone who plays that game loses. There will always be someone else who does things better or is more effective. We are called to serve the Lord. Our desire should be solely to please Him. Serve Him today to the best of your abilities. Your service will be a sacrifice of praise to the King.</p>
</div>
</div>
</div>
</body>
</html>
<style type="text/css">
body {
padding: 0px;
margin: 0px;
font-family: 'Josefin Sans', sans-serif;
}
#main-slider {
height: 100%;
width: 100%;
}
.main-menu-list {
color:white;
float: right;
padding-left: 7px;
position: relative;
bottom: 640px;
}
#menu-contact {
margin-right:7px;
}
#daily-reading {
background-color: #F0F1F2;
position: relative;
bottom: 22px;
}
#daily-reading-heading {
text-align: center;
margin-left: 185px;
padding: 10px 0 1px 0;
}
#daily-post p {
width: 600px;
margin-left: 10px;
}
#daily-post-picture {
float: left;
width: 50%;
}
#daily-post-content{
float: right;
width: 50%;
}
#daily-post-picture img {
height: 200px;
}
</style>
Instead of changing the position of image.You can apply position:absolute to it
check this snippet
body {
padding: 0;
margin: 0;
font-family: 'Josefin Sans', sans-serif;
}
#main-slider {
height: 100vh;
width: 100vw;
}
#menu-contact {
margin-right: 7px;
}
#daily-reading {
background-color: #F0F1F2;
position: relative;
bottom: 22px;
}
#daily-reading-heading {
text-align: center;
margin-left: 185px;
padding: 10px 0 1px;
}
#daily-post p {
width: 600px;
margin-left: 10px;
}
#daily-post-picture {} #daily-post-picture img {
position: absolute;
top: 0;
right: 0;
}
<div id="daily-reading">
<h1 id="daily-reading-heading">Today's Reading</h1>
<div id="daily-post">
<p>For we are God’s workmanship, created in Christ Jesus to do good works, which God prepared for us in advance to do. –Ephesians 2:10
<p>Consider the following quote:</p>
<p>"I am only one, but I am one; I cannot do everything But I can do something. What I can do, I ought to do And what I ought to do By the grace of God, I will do." – Canon Farrar</p>
<p>We live in a culture that constantly shines a spotlight on the famous: pretty or especially gifted people (or both!) We live in a celebrity-focused culture. Just think about all of the media devoted to celebrities. It would be great if the church
was immune from this culture, but it isn’t. Even the Christian community tends to highlight our best people; from musicians to speakers, to those involved in doing incredible ministry. While I’m not saying that spotlighting is wrong, I am concerned
that there are many of us who become disheartened because we know our efforts don’t approach the skills or successes of those of the extremely gifted. I am concerned that some of us give up attempting to make a difference when we think we can’t
measure up.</p>
<p>True, we may never be celebrities in the eyes of the world or even within the Christian community. But, God doesn’t call us to be famous. He calls us to love one another. He calls us to give ourselves away to serve others. The needs of our world
are great, and we cannot do everything. Still, as part of the body of Christ, we have a unique and invaluable role to play. God has purposely designed us for accomplishing good works in His name.</p>
<p>Stop playing the comparison game. Anyone who plays that game loses. There will always be someone else who does things better or is more effective. We are called to serve the Lord. Our desire should be solely to please Him. Serve Him today to the
best of your abilities. Your service will be a sacrifice of praise to the King.</p>
<div id="daily-post-picture">
<img src="https://placehold.it/100">
</div>
</div>
</div>
Good Evening,
I have tried and tried to position my text to the right of an image and when the browser is smaller then drops down underneath the image.
Can somebody tell me what I am doing wrong or not doing.
#bandmemberinfo-container {
width: 100%;
background-color: black;
height: auto;
margin-top: 10px;
border: 1px red solid;
color: #fff;
font-family: Arial;
font-size: 10px;
text-transform: uppercase;
}
.bandmemberinfo-container img {
height: 100%;
max-width: 350px;
float: left;
}
<div id="bandmemberinfo-container">
<!-- BAND MEMBER INFO CONTAINER START -->
<img src="http://slade40years.page4.com/nobby_439_752.jpg" class="img-responsive nobbyboulder" />
<p>THE 1970'S HOSTED ONE OF THE MOST FLAMBOYANT DECADES IN THE HISTORY OF POP MUSIC AND ARTISTS SUCH AS SWEET, DAVID BOWIE, WIZZARD, T-REX AND MUD CHAMPIONED THE "GLAM ROCK" MOVEMENT, WHERE PLATFORM BOOTS, SEQUINNED SHIRTS, TWO-TONE FLARED TROUSERS AND
OUTRAGEOUS MAKE-UP, BECAME THE NORM FOR MANY POP BANDS. THE MIGHTY SLADE LED THE GLAM MARCH ACROSS THE UK, INTO EUROPE AND THROUGHOUT THE WORLD. IT IS A PART OF POP HISTORY THAT HAS SHAPED MUSIC CULTURE MANY YEARS LATER AND SLYDE CONTINUE TO KEEP
THE EXCITING ATMOSPHERE OF GLAMROCK ALIVE. THEY ARE THE PERFECT CHOICE FOR ANY 70'S THEMED EVENT WITH AN IMPRESSIVE STAGE SHOW DURING WHICH THEY COVER MANY OF THE CLASSIC HITS OF THAT ERA SLYDE HAVE SUPPORTED ARTISTS SUCH AS THE RUBETTES, BAY CITY
ROLLERS, SMOKIE, BONEY M AND THE LATE ALVIN STARDUST. THEY ARE THE LONGEST RUNNING TRIBUTE TO THE MUSIC OF SLADE AND HAVE PERFORMED WITH THEM AT 70'S WEEKENDERS, UNDER THE NAME OF GLAMROCK UK.</p>
<!-- BAND MEMBER INFO CONTAINER END-->
</div>
You are using a class selector that is not in your HTML
Use:
#bandmemberinfo-container img {
height: 100%;
max-width: 350px;
float: left;
}
or add "bandmemberinfo-container" class not id (http://www.w3schools.com/css/css_syntax.asp ;)
You have two little mistakes:
1.) The selector for the image has to be #bandmemberinfo-container img instead of .bandmemberinfo-container img
2.) Its CSS settings should be like this:
#bandmemberinfo-container img {
width: 100%;
max-width: 350px;
float: left;
}
I.e. 100% width not height) for small screens (below 350px wide), but with a maximum of 350px - then the text will float right of it on larger screens (above 350px).
#bandmemberinfo-container {
width: 100%;
background-color: black;
height: auto;
margin-top: 10px;
border: 1px red solid;
color: #fff;
font-family: Arial;
font-size: 10px;
text-transform: uppercase;
}
#bandmemberinfo-container img {
width: 100%;
max-width: 350px;
float: left;
}
<div id="bandmemberinfo-container">
<!-- BAND MEMBER INFO CONTAINER START -->
<img src="http://slade40years.page4.com/nobby_439_752.jpg" class="img-responsive nobbyboulder" />
<p>THE 1970'S HOSTED ONE OF THE MOST FLAMBOYANT DECADES IN THE HISTORY OF POP MUSIC AND ARTISTS SUCH AS SWEET, DAVID BOWIE, WIZZARD, T-REX AND MUD CHAMPIONED THE "GLAM ROCK" MOVEMENT, WHERE PLATFORM BOOTS, SEQUINNED SHIRTS, TWO-TONE FLARED TROUSERS AND
OUTRAGEOUS MAKE-UP, BECAME THE NORM FOR MANY POP BANDS. THE MIGHTY SLADE LED THE GLAM MARCH ACROSS THE UK, INTO EUROPE AND THROUGHOUT THE WORLD. IT IS A PART OF POP HISTORY THAT HAS SHAPED MUSIC CULTURE MANY YEARS LATER AND SLYDE CONTINUE TO KEEP
THE EXCITING ATMOSPHERE OF GLAMROCK ALIVE. THEY ARE THE PERFECT CHOICE FOR ANY 70'S THEMED EVENT WITH AN IMPRESSIVE STAGE SHOW DURING WHICH THEY COVER MANY OF THE CLASSIC HITS OF THAT ERA SLYDE HAVE SUPPORTED ARTISTS SUCH AS THE RUBETTES, BAY CITY
ROLLERS, SMOKIE, BONEY M AND THE LATE ALVIN STARDUST. THEY ARE THE LONGEST RUNNING TRIBUTE TO THE MUSIC OF SLADE AND HAVE PERFORMED WITH THEM AT 70'S WEEKENDERS, UNDER THE NAME OF GLAMROCK UK.</p>
<!-- BAND MEMBER INFO CONTAINER END-->
</div>
I think for what your desired effect is. You can put the image inside the paragraph tag as the first item before the text starts, then the text will wrap around the image. You can then just add margin to the image to give it extra space between the image and text. And possibly use the image align-attribute
I have added another more heavy html element approach below, to show another method to control a layout. This is using floats and a more responsive approach.
I would also avoid using ID; use class as a rule of thumb. As it is just one less think to think about. And, if you don't care about legacy (IE) browsers then you could consider to use Flexbox. Which will help with different screens and wrapping of images.
.bandmemberinfo-container {
display: inline-flex;
width: 100%;
background-color: black;
height: auto;
margin-top: 1em;
border: 1px red solid;
color: #fff;
font-family: Arial;
font-size: 0.9em;
text-transform: uppercase;
}
.img_wrap {
float: left;
width: 50%;
border: 1px yellow dashed;
}
.img_wrap img {
height: auto;
max-width: 100%;
}
.two {
float: left;
width: 50%;
}
<div class="bandmemberinfo-container">
<div class='img_wrap'><img src="http://slade40years.page4.com/nobby_439_752.jpg" /></div>
<div class='two'>THE 1970'S HOSTED ONE OF THE MOST FLAMBOYANT DECADES IN THE HISTORY OF POP MUSIC AND ARTISTS SUCH AS SWEET, DAVID BOWIE, WIZZARD, T-REX AND MUD CHAMPIONED THE "GLAM ROCK" MOVEMENT, WHERE PLATFORM BOOTS, SEQUINNED SHIRTS, TWO-TONE FLARED TROUSERS AND
OUTRAGEOUS MAKE-UP, BECAME THE NORM FOR MANY POP BANDS. THE MIGHTY SLADE LED THE GLAM MARCH ACROSS THE UK, INTO EUROPE AND THROUGHOUT THE WORLD. IT IS A PART OF POP HISTORY THAT HAS SHAPED MUSIC CULTURE MANY YEARS LATER AND SLYDE CONTINUE TO KEEP
THE EXCITING ATMOSPHERE OF GLAMROCK ALIVE. THEY ARE THE PERFECT CHOICE FOR ANY 70'S THEMED EVENT WITH AN IMPRESSIVE STAGE SHOW DURING WHICH THEY COVER MANY OF THE CLASSIC HITS OF THAT ERA SLYDE HAVE SUPPORTED ARTISTS SUCH AS THE RUBETTES, BAY CITY
ROLLERS, SMOKIE, BONEY M AND THE LATE ALVIN STARDUST. THEY ARE THE LONGEST RUNNING TRIBUTE TO THE MUSIC OF SLADE AND HAVE PERFORMED WITH THEM AT 70'S WEEKENDERS, UNDER THE NAME OF GLAMROCK UK.</p></div>
<!-- BAND MEMBER INFO CONTAINER END-->
</div>
I am using a image for list items but it is not displaying on the same level with the li item. I am adding a link to fiddle pls have a look.
#container {
background: #e3e3e3;
margin-top: 50px;
}
#image {
margin: 20px;
width: 900px;
}
#title {
text-align: center;
font-family: Roboto;
background: -webkit-linear-gradient(#f35626, #feab3a);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
li {
line-height: 30px;
font-family: Roboto;
font-size: 25px;
list-style-image: url('https://s3.postimg.org/4qsqurmsj/ic_item_play.png');
}
<div class="grid_16">
<ul>
<li>
Mark Zuckerberg began programming at a young age--when he was 12 he created a messaging program that his father used in his dental office, allowing the receptionist to notify him of new patients without yelling across the office.
</li>
<li>Zuckerberg took a computer graduate class at the nearby Mercy College while still in high school.</li>
<li>
His parents even hired a computer tutor to work with the young Zuckerberg, but the tutor admitted that it quickly became difficult to stay ahead of his pupil, referring to him as a "prodigy."
</li>
</ul>
</div>
https://jsfiddle.net/n2o79mL7/
Don't use list-style-image
See my changes in the updated fiddle - https://jsfiddle.net/n2o79mL7/1/
I have basically removed the padding from the ul and added the image as a background of the li, using background-position and padding to align the list item properly.
Hope this helps mate.
try this:`
<li>
<div class="img>
</div>
Mark Zuckerberg began programming at a young age--when he was 12 he created a messaging program that his father used in his dental office, allowing the receptionist to notify him of new patients without yelling across the office.
</li>
<li>
<div class="img>
</div>
Zuckerberg took a computer graduate class at the nearby Mercy College while still in high school.</li>
<li>
His parents even hired a computer tutor to work with the young Zuckerberg, but the tutor admitted that it quickly became difficult to stay ahead of his pupil, referring to him as a "prodigy."
</li>
`
changes in css:`
li
{
line-height:30px;
font-family:Roboto;
font-size:25px;
list-style:none;
}
div
{
background: url("https://s3.postimg.org/4qsqurmsj/ic_item_play.png") no-repeat 0px 0px;
}`
On this page: www.incfilms.net/services, my goal is to make that Advertising and Consulting picture move to the right side of that paragraph.
The main page has:
<div class="serviceinfo">I am Not a Communist is now proud to offer a new range of digital video and media services to you and your business. We're calling it INC Pro.
<p>We are able to meet and focus with our clients on finding customizable solutions that are specific to their exact needs and objectives.
<p>We encompass the expertise and capabilities to create professional quality media; offering a number of services ranging from pre
through post production consultation, shooting and capturing, editing, color matching, audio leveling and digital mastering.
<p>Please contact us for a quote or more information at <?php echo $adminemail; ?> or call at <?php echo $phonenum; ?>.
</div>
<!--ADVERTISING AND CONSULTING LOGO -->
<div class="adconsul"><img src="media/advert.png" width="350" height="120"/></div>
And the CSS sheet has:
.serviceinfo {
width: 600px;
text-align: left;
clear: both;
color: white;
font-family: Arial, Helvetica, sans-serif;
font-size: small;
}
.adconsul {
width: 350px;
float: right;
margin: auto;
color: white;
padding-bottom: 100px;
}
I probably shouldnt be using the float right, but is there a way I can get that picture to the right of the paragraph and keep the footer at the bottom? Thank you
Try putting a float: right in the .serviceinfo class
you'll want to use the following after floating divs
<div style="clear:both;"></div>