Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 将图片移到页面右侧_Html_Css - Fatal编程技术网

Html 将图片移到页面右侧

Html 将图片移到页面右侧,html,css,Html,Css,我需要一些专家的帮助 我试图将图片移动到div的右侧,但当我“float:right”时,图片只是从它所在的初始div中移出。图像不断移出的div是“每日阅读”div,出于某种原因,如果图像不离开该div,我就无法将其移到右侧。我正在尝试将图片放置在我的段落右侧,因为段落正好位于我需要它们的位置。任何能帮忙的人都将不胜感激 这是我的密码: (从我们正在查看的div开始) 正文{ 填充:0; 保证金:0; 字体系列:“Josefin Sans”,无衬线; } #主滑块{ 身高:100%; 宽度:

我需要一些专家的帮助

我试图将图片移动到div的右侧,但当我“float:right”时,图片只是从它所在的初始div中移出。图像不断移出的div是“每日阅读”div,出于某种原因,如果图像不离开该div,我就无法将其移到右侧。我正在尝试将图片放置在我的段落右侧,因为段落正好位于我需要它们的位置。任何能帮忙的人都将不胜感激

这是我的密码: (从我们正在查看的div开始)

正文{
填充:0;
保证金:0;
字体系列:“Josefin Sans”,无衬线;
}
#主滑块{
身高:100%;
宽度:100%;
}
.主菜单列表{
颜色:白色;
浮动:对;
左侧填充:7px;
位置:相对位置;
底部:640px;
}
#菜单联系人{
右边距:7px;
}
#每日阅读{
背景色:#F0F1F2;
位置:相对位置;
底部:22px;
}
#每日阅读标题{
文本对齐:居中;
左边距:185px;
填充:10px 0 1px;
}
#每日邮报{
宽度:600px;
左边距:10px;
}
#每日邮报图片{
}
#每日邮报图片{
高度:200px;
}

今天的阅读
因为我们是神的手艺,是在基督耶稣里创造的,为要行善,是神预先为我们预备的以弗所书2:10
考虑以下引用:

“我只是一个,但我是一个; 我不能什么都做 但我能做点什么。 我能做的,我应该做 我该怎么办 凭上帝的恩典,我会做到的。” -佳能法拉

我们生活在一个不断聚焦名人的文化中:漂亮或特别有天赋的人(或两者都有!)我们生活在一个以名人为中心的文化中。想想所有致力于名人的媒体。如果教会不受这种文化的影响那就太好了,但事实并非如此。甚至基督教团体也倾向于强调我们最优秀的人;从音乐家到演说家,到那些从事不可思议的事工的人。虽然我并不是说聚光灯是错误的,但我担心的是,我们中的许多人变得灰心丧气,因为我们知道我们的努力无法达到那些极有天赋的人的技能或成功。我担心的是,当我们认为自己无法达到标准时,我们中的一些人会放弃改变现状的尝试

诚然,我们可能永远不会成为全世界甚至基督教界的名人。但是,上帝不会叫我们出名。他叫我们彼此相爱。他号召我们献身于他人。我们这个世界的需求是巨大的,我们不能做任何事情。然而,作为基督身体的一部分,我们要扮演一个独特而宝贵的角色。神特意设计我们,要我们奉他的名行善事

别再玩比较游戏了。玩那个游戏的人都输了。总会有人做得更好或更有效。我们被召去事奉主。我们的愿望应该只是取悦他。今天尽你所能为他服务。你的服务将是对国王的赞美

将div
#每日邮报图片
移动到段落上方,并应用
浮动:右

正文{
填充:0px;
边际:0px;
字体系列:“Josefin Sans”,无衬线;
}
#主滑块{
身高:100%;
宽度:100%;
}
.主菜单列表{
颜色:白色;
浮动:对;
左侧填充:7px;
位置:相对位置;
底部:640px;
}
#菜单联系人{
右边距:7px;
}
#每日阅读{
背景色:#F0F1F2;
位置:相对位置;
底部:22px;
}
#每日阅读标题{
文本对齐:居中;
左边距:185px;
填充:10px 0 1px 0;
}
#每日邮报{
宽度:600px;
左边距:10px;
}
#每日邮报图片{
浮动:对;
利润率:0.20px 20px;
}
#每日邮报图片{
高度:200px;
}

今天的阅读
因为我们是神的手艺,是在基督耶稣里创造的,为要行善,是神预先为我们预备的以弗所书2:10
考虑以下引用:

“我只是一个,但我是一个; 我不能什么都做 但我能做点什么。 我能做的,我应该做 我该怎么办 凭上帝的恩典,我会做到的。” -佳能法拉

我们生活在一个不断聚焦名人的文化中:漂亮或特别有天赋的人(或两者都有!)我们生活在一个以名人为中心的文化中。想想所有致力于名人的媒体。如果教会不受这种文化的影响那就太好了,但事实并非如此。甚至基督教团体也倾向于强调我们最优秀的人;从音乐家到演说家,到那些从事不可思议的事工的人。虽然我并不是说聚光灯是错误的,但我担心的是,我们中的许多人变得灰心丧气,因为我们知道我们的努力无法达到那些极有天赋的人的技能或成功。我担心的是,当我们认为自己无法达到标准时,我们中的一些人会放弃改变现状的尝试

诚然,我们可能永远不会成为全世界甚至基督教界的名人。但是,上帝不会叫我们出名。他叫我们彼此相爱。他号召我们献身于他人。我们这个世界的需求是巨大的,我们不能做任何事情。然而,作为基督身体的一部分,我们要扮演一个独特而宝贵的角色。神特意设计我们,要我们奉他的名行善事

别再玩比较游戏了。玩那个游戏的人都输了。总会有人做得更好或更有效。我们被召去事奉主。我们的愿望应该只是取悦他。今天最好为他服务
<!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>